Skip to content
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

Feature/#47 remember user preferences dark light mode #140

Conversation

AlbertoSSC
Copy link
Collaborator

@AlbertoSSC AlbertoSSC commented Jan 18, 2024

Closed #47

const { children } = props;
const [theme, setTheme] = React.useState<ThemeModel>(createInitialTheme());

const toggleTheme = () => {
setTheme((prevTheme) => ({
localStorage.setItem(
'themeMode',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will create a const with this key

@@ -0,0 +1,193 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need update your main branch with the lemoncode respository and then update this branch

@brauliodiez brauliodiez merged commit 8e26254 into Lemoncode:main Jan 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remember user preferences (dark / light) mode
3 participants