-
Notifications
You must be signed in to change notification settings - Fork 40
Add settings page #1015
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: new-design
Are you sure you want to change the base?
Add settings page #1015
Conversation
05e6fff to
8eeb225
Compare
3e73c3a to
5fe9a1e
Compare
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
94258e3 to
854d053
Compare
ManneG
left a comment
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.
Other than my comments, looks good!
| onValueChange={(value) => setMode(value as "dark" | "light" | "system")} | ||
| > | ||
| <Select.Trigger class="w-36" | ||
| >{modeTranslation(data.theme)}</Select.Trigger |
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.
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.
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.
One proposal for how it could work is, add a third "language option" being "no preference". This would be the default. If you have selected a preference it would (using a hook) always redirect you to the part of the site with you language of choice. This would then also hide the language button in the header as that would be redundant and do nothing.
Selecting english, and then going to /news would then redirect you to /en/news unless you went back to settings and selected no preference


Waiting for switch component