mirror of
https://github.com/DIYgod/RSSHub-Radar.git
synced 2026-08-28 17:45:13 +08:00
fix: apply dark mode at root (#910)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user