diff --git a/app/[doc_id]/page.tsx b/app/[doc_id]/page.tsx index 01c1a409..d3fb5b7b 100644 --- a/app/[doc_id]/page.tsx +++ b/app/[doc_id]/page.tsx @@ -1,10 +1,10 @@ import { Fact, ReplicacheProvider } from "src/replicache"; import { Database } from "../../supabase/database.types"; -import { Blocks } from "components/Blocks"; import { Attributes } from "src/replicache/attributes"; import { createServerClient } from "@supabase/ssr"; import { SelectionManager } from "components/SelectionManager"; import { Cards } from "components/Cards"; +import { ThemeProvider } from "components/ThemeManager/ThemeProvider"; export const preferredRegion = ["sfo1"]; export const dynamic = "force-dynamic"; @@ -22,8 +22,15 @@ export default async function DocumentPage(props: { let initialFacts = (data as unknown as Fact[]) || []; return ( - - + + + + ); } diff --git a/components/Cards.tsx b/components/Cards.tsx index e2eeebfa..fb4bd5c2 100644 --- a/components/Cards.tsx +++ b/components/Cards.tsx @@ -3,47 +3,61 @@ import { useUIState } from "src/useUIState"; import { Blocks } from "./Blocks"; import useMeasure from "react-use-measure"; import { elementId } from "src/utils/elementId"; +import { ThemePopover } from "./ThemeManager/ThemeSetter"; export function Cards(props: { rootCard: string }) { let cards = useUIState((s) => s.openCards); let [cardRef, { width: cardWidth }] = useMeasure(); return ( -