mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: use proper state in system theme (#10090)
This commit is contained in:
@@ -98,7 +98,7 @@ export const WorkspaceReadyPage = ({
|
||||
...templateVersion(workspace.template_active_version_id),
|
||||
enabled: workspace.outdated,
|
||||
});
|
||||
const systemTheme = useState(() => {
|
||||
const [systemTheme] = useState(() => {
|
||||
if (typeof window.matchMedia === "undefined") {
|
||||
// Default to dark mode!
|
||||
return "dark";
|
||||
|
||||
Reference in New Issue
Block a user