diff --git a/src/molecules/theme-selector.tsx b/src/molecules/theme-selector.tsx index cbbd0f3..211af26 100644 --- a/src/molecules/theme-selector.tsx +++ b/src/molecules/theme-selector.tsx @@ -5,9 +5,9 @@ import { Button } from "src/atoms/button"; import { theme as _theme } from "src/utils"; type Mode = ReturnType['mode'] -export const useTheme = (props: {defaultMode?: Mode }) => { - const mode = props.defaultMode ?? "dark" - const [theme, _setTheme] = React.useState>({mode, isDark: _theme.isDark(mode)}); +export const useTheme = () => { + + const [theme, _setTheme] = React.useState>({mode: "dark", isDark: true}); React.useEffect(() => { _theme.subscribe(() => { _setTheme(_theme.get());