Skip to content

Commit

Permalink
🎨 fix: color mode type
Browse files Browse the repository at this point in the history
  • Loading branch information
restrainhalation committed Jun 23, 2024
1 parent 36bd747 commit 5276158
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
ColorMode,
ColorModeScript,
ThemeSchemeScript,
defaultConfig,
Expand All @@ -10,7 +11,7 @@ import { renderToString } from "react-dom/server"
const app = new Hono()

app.get("*", (c) => {
const colorMode = getCookie(c, "ui-color-mode")
const colorMode = getCookie(c, "ui-color-mode") as "system" | ColorMode | undefined
const themeScheme = getCookie(c, "ui-theme-scheme")

return c.html(
Expand Down

0 comments on commit 5276158

Please sign in to comment.