mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 08:24:27 +00:00
Fix settings not closing on submit bug
This commit is contained in:
@@ -34,15 +34,15 @@ function App() {
|
||||
loadUserSettings();
|
||||
}, [userId]);
|
||||
|
||||
const toggleTheme = () => {
|
||||
setThemeType(prevTheme => prevTheme === 'light' ? 'dark' : 'light');
|
||||
const setTheme = (newTheme) => {
|
||||
setThemeType(newTheme);
|
||||
};
|
||||
|
||||
return (
|
||||
<GeistProvider themeType={themeType}>
|
||||
<CssBaseline />
|
||||
<Page>
|
||||
<Header currentTheme={themeType} onThemeChange={toggleTheme} />
|
||||
<Header currentTheme={themeType} onThemeChange={setTheme} />
|
||||
<Page.Content>
|
||||
<MainContent
|
||||
content={content}
|
||||
|
||||
Reference in New Issue
Block a user