Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: apply dark mode at root #910

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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