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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove duplicate theme logic #216

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DaniAcu
Copy link

@DaniAcu DaniAcu commented Jun 3, 2024

Right now the theme management is duplicated in the navbar and the index.html
I just remove code to centralize it in the already existing useTheme

I understand that the index.html code is set to run before the render, I check and I didn't see a big impact. If you still want to have this before render. I could add a hook to run before any render in the ThemeProvider, but I didn't see that necesary at this time.

If this PR is accepted I will be happy to help in any other thing. 馃槃 Happy to contribute

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.

None yet

1 participant