diff --git a/apps/dashboard/components/color-toggle.tsx b/apps/dashboard/components/color-toggle.tsx
index f311e74c6b..1640e0706a 100644
--- a/apps/dashboard/components/color-toggle.tsx
+++ b/apps/dashboard/components/color-toggle.tsx
@@ -1,58 +1,30 @@
"use client"
import * as React from "react"
import { useColorScheme } from "@mui/joy/styles"
-import IconButton, { IconButtonProps } from "@mui/joy/IconButton"
import DarkModeRoundedIcon from "@mui/icons-material/DarkModeRounded"
import LightModeIcon from "@mui/icons-material/LightMode"
+import { MenuItem } from "@mui/joy"
-export default function ColorSchemeToggle({ onClick, sx, ...props }: IconButtonProps) {
+export default function ColorSchemeToggle() {
const { mode, setMode } = useColorScheme()
- const [mounted, setMounted] = React.useState(false)
- React.useEffect(() => {
- setMounted(true)
- }, [])
- if (!mounted) {
- return (
-
- )
- }
return (
- {
+
+ {mode === "light" ? "Dark Mode" : "Light Mode"}
+ {mode === "light" ? : }
+
)
}
diff --git a/apps/dashboard/components/header.tsx b/apps/dashboard/components/header.tsx
index 5bf843e869..ead23f48f1 100644
--- a/apps/dashboard/components/header.tsx
+++ b/apps/dashboard/components/header.tsx
@@ -84,6 +84,7 @@ export default function Header() {
placement="bottom-end"
>
-
-
+