fix: use proper state in system theme (#10090)

This commit is contained in:
Kyle Carberry
2023-10-05 17:32:52 -05:00
committed by GitHub
parent fa0a597530
commit 14c8824c83
@@ -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";