diff --git a/src/components/Layout/Sidebar/index.tsx b/src/components/Layout/Sidebar/index.tsx
index 60b32291a6..8f9dab1043 100644
--- a/src/components/Layout/Sidebar/index.tsx
+++ b/src/components/Layout/Sidebar/index.tsx
@@ -1,4 +1,5 @@
import Badge from '@app/components/Common/Badge';
+import SeerrLogo from '@app/components/Common/SeerrLogo';
import VersionStatus from '@app/components/Layout/VersionStatus';
import useClickOutside from '@app/hooks/useClickOutside';
import { Permission, useUser } from '@app/hooks/useUser';
@@ -15,7 +16,6 @@ import {
UsersIcon,
XMarkIcon,
} from '@heroicons/react/24/outline';
-import Image from 'next/image';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { Fragment, useEffect, useRef } from 'react';
@@ -192,7 +192,7 @@ const Sidebar = ({
-
+
@@ -255,12 +255,7 @@ const Sidebar = ({
-
+
diff --git a/src/components/Layout/UserDropdown/index.tsx b/src/components/Layout/UserDropdown/index.tsx
index 545a63e202..27d0b7c912 100644
--- a/src/components/Layout/UserDropdown/index.tsx
+++ b/src/components/Layout/UserDropdown/index.tsx
@@ -1,11 +1,14 @@
import CachedImage from '@app/components/Common/CachedImage';
import MiniQuotaDisplay from '@app/components/Layout/UserDropdown/MiniQuotaDisplay';
+import useTheme from '@app/hooks/useTheme';
import { Permission, useUser } from '@app/hooks/useUser';
import defineMessages from '@app/utils/defineMessages';
import { Menu, Transition } from '@headlessui/react';
import {
ArrowRightOnRectangleIcon,
ClockIcon,
+ MoonIcon,
+ SunIcon,
} from '@heroicons/react/24/outline';
import { CogIcon, UserIcon } from '@heroicons/react/24/solid';
import axios from 'axios';
@@ -18,6 +21,8 @@ const messages = defineMessages('components.Layout.UserDropdown', {
myprofile: 'Profile',
settings: 'Settings',
requests: 'Requests',
+ switchtodark: 'Switch to Dark Theme',
+ switchtolight: 'Switch to Light Theme',
signout: 'Sign Out',
});
@@ -37,6 +42,7 @@ ForwardedLink.displayName = 'ForwardedLink';
const UserDropdown = () => {
const intl = useIntl();
const { user, revalidate, hasPermission } = useUser();
+ const { theme, toggleTheme } = useTheme();
const logout = async () => {
const response = await axios.post('/api/v1/auth/logout');
@@ -154,6 +160,32 @@ const UserDropdown = () => {
)}
+
+ {({ active }) => (
+
+ )}
+
{({ active }) => (
{
diff --git a/src/components/MovieDetails/index.tsx b/src/components/MovieDetails/index.tsx
index 80aded586e..2f2cd33250 100644
--- a/src/components/MovieDetails/index.tsx
+++ b/src/components/MovieDetails/index.tsx
@@ -452,13 +452,7 @@ const MovieDetails = ({ movie }: MovieDetailsProps) => {
fill
priority
/>
-
+
)}