From 8b1c8c77e715e400e13521706365da32db2091b0 Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Fri, 23 Feb 2024 19:07:15 +0800 Subject: [PATCH] fix: apply dark mode at root --- src/options/index.tsx | 2 ++ src/tabs/preview.tsx | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/options/index.tsx b/src/options/index.tsx index 3cf2af2f..17e73709 100644 --- a/src/options/index.tsx +++ b/src/options/index.tsx @@ -3,11 +3,13 @@ import "~/lib/style.css" import { Toaster } from "react-hot-toast" import { MemoryRouter } from "react-router-dom" +import { useDark } from "~/lib/hooks/use-dark" import { Routing } from "~/options/routes" import Siderbar from "./Siderbar" function Options() { + useDark() return (