fix: apply dark mode at root (#910)

This commit is contained in:
Stephen Zhou
2024-02-24 00:12:21 +08:00
committed by GitHub
parent 653f0db987
commit 7bee9db031
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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 (
<div className="max-w-screen-lg mx-auto text-base py-10 px-4">
<Toaster
+3
View File
@@ -14,12 +14,15 @@ import {
CardHeader,
CardTitle,
} from "~/lib/components/Card"
import { useDark } from "~/lib/hooks/use-dark"
import { fetchRSSContent } from "~/lib/utils"
import RSSItem from "~/popup/RSSItem"
const parser = new Parser()
function PreviewPage() {
useDark()
const url = new URLSearchParams(window.location.search).get("url")
const [parsed, setParsed] = useState<