diff --git a/apps/login/ui/Theme.tsx b/apps/login/ui/Theme.tsx index 20ae7244b47..7f52e2c6284 100644 --- a/apps/login/ui/Theme.tsx +++ b/apps/login/ui/Theme.tsx @@ -1,11 +1,9 @@ "use client"; -import { Switch } from "@headlessui/react"; -import { MoonIcon, SunIcon } from "@heroicons/react/24/outline"; +import React, { useEffect, useState } from "react"; import { useTheme } from "next-themes"; -import { useEffect, useState } from "react"; -export default function Theme() { +function Theme() { const { resolvedTheme, setTheme } = useTheme(); const [mounted, setMounted] = useState(false); @@ -21,28 +19,27 @@ export default function Theme() { } return ( - setTheme(checked ? "dark" : "light")} - className={`${ - isDark - ? "!bg-gray-800 dark:bg-background-dark-400" - : "!bg-gray-200 dark:bg-background-dark-400" - } - relative inline-flex h-4 w-9 items-center rounded-full`} +
- - + + + +
); } + +export default Theme; diff --git a/apps/login/utils/cookies.ts b/apps/login/utils/cookies.ts index 857713a4183..00502cc830f 100644 --- a/apps/login/utils/cookies.ts +++ b/apps/login/utils/cookies.ts @@ -81,9 +81,7 @@ export async function removeSessionFromCookie( ? JSON.parse(stringifiedCookie?.value) : [session]; - const filteredSessions = sessions.filter( - (session) => session.id !== session.id - ); + const filteredSessions = sessions.filter((s) => s.id !== session.id); // @ts-ignore return cookiesList.set({