Skip to content

Commit

Permalink
fix: apply dark mode at root (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban authored Feb 23, 2024
1 parent 653f0db commit 7bee9db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/options/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/tabs/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down

0 comments on commit 7bee9db

Please sign in to comment.