-
Notifications
You must be signed in to change notification settings - Fork 2
Remove theme toggle and default to light theme #64
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
app/layout.tsx
Outdated
| </html> | ||
| ); | ||
| } | ||
| <ThemeProvider attribute="class" defaultTheme="light" enableSystem> |
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.
fix the removed
); }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.
Done.
| } | ||
| </body> | ||
| </html> | ||
| ); |
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.
sweep: regenerate
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.
Done.
app/layout.tsx
Outdated
| </body> | ||
| </html> | ||
| ); | ||
| <ThemeProvider attribute="class" defaultTheme="light" enableSystem> |
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.
replace the above themeprovider with this line, and then delete this line
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.
Done.
Description
This PR removes the theme toggle from the site header and makes the application default to the light theme.
Summary of Changes
layout.tsxfile, thedefaultThemeproperty in theThemeProvidercomponent has been changed to "light".site-header.tsxfile, the line that adds theThemeTogglecomponent to the site header has been removed.ThemeTogglecomponent file has been deleted as it is no longer needed.app/_examples/client-component/page.tsxandapp/_examples/server-action/page.tsxfiles have been checked for any references to theThemeTogglecomponent or thedefaultThemeproperty and modified or removed as necessary.Please review and merge this PR to remove the theme toggle and default to the light theme.
Fixes #63.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: