-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Frontend Code #47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, npm run build
fails with
./src/app/styles/themeContext.tsx:26:42
Type error: Argument of type '"light" | "dark"' is not assignable to parameter of type '"light"'.
Type '"dark"' is not assignable to type '"light"'.
24 | export const ThemeModeProvider = ({ children }: { children: ReactNode }) => {
25 | const [mode, setMode] = useState<'light' | 'dark'>('light');
> 26 | const theme = useMemo(() => getTheme(mode), [mode]);
| ^
27 |
28 | const toggleTheme = () => {
29 | setMode((prevMode) => (prevMode === 'light' ? 'dark' : 'light'));
maybe the dark theme related stuff needs to be deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
No description provided.