diff --git a/package-lock.json b/package-lock.json index 82974c7..2210274 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,8 +22,10 @@ "lucide": "^0.379.0", "lucide-react": "^0.379.0", "next": "14.2.3", + "next-themes": "^0.3.0", "react": "^18", "react-dom": "^18", + "sonner": "^1.4.41", "tailwind-merge": "^2.3.0", "tailwindcss-animate": "^1.0.7" }, @@ -4324,6 +4326,15 @@ } } }, + "node_modules/next-themes": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.3.0.tgz", + "integrity": "sha512-/QHIrsYpd6Kfk7xakK4svpDI5mmXP0gfvCoJdGpZQ2TOrQZmsW0QxjaiLn8wbIKjtm4BTSqLoix4lxYYOnLJ/w==", + "peerDependencies": { + "react": "^16.8 || ^17 || ^18", + "react-dom": "^16.8 || ^17 || ^18" + } + }, "node_modules/next/node_modules/postcss": { "version": "8.4.31", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", @@ -5331,6 +5342,15 @@ "node": ">=8" } }, + "node_modules/sonner": { + "version": "1.4.41", + "resolved": "https://registry.npmjs.org/sonner/-/sonner-1.4.41.tgz", + "integrity": "sha512-uG511ggnnsw6gcn/X+YKkWPo5ep9il9wYi3QJxHsYe7yTZ4+cOd1wuodOUmOpFuXL+/RE3R04LczdNCDygTDgQ==", + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + } + }, "node_modules/source-map-js": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", diff --git a/package.json b/package.json index 9cea5aa..67f0e5e 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,10 @@ "lucide": "^0.379.0", "lucide-react": "^0.379.0", "next": "14.2.3", + "next-themes": "^0.3.0", "react": "^18", "react-dom": "^18", + "sonner": "^1.4.41", "tailwind-merge": "^2.3.0", "tailwindcss-animate": "^1.0.7" }, diff --git a/src/app/embed/page.tsx b/src/app/embed/page.tsx index 7d70463..769172f 100644 --- a/src/app/embed/page.tsx +++ b/src/app/embed/page.tsx @@ -7,7 +7,7 @@ import { allThemes, Theme } from '@/lib/theme'; export default function EmbedPage() { const searchParams = useSearchParams(); const padding = searchParams?.get('padding') || '64'; - const theme = searchParams?.get('theme') || JSON.stringify(allThemes['sunset']); + const theme = searchParams?.get('theme') || JSON.stringify(allThemes['firecrawl']); const background = searchParams?.get('background') || 'false'; const [parsedPadding, setParsedPadding] = useState(0); @@ -41,6 +41,7 @@ export default function EmbedPage() { padding={parsedPadding} theme={parsedTheme} background={parsedBackground} + darkMode={false} chartRef={chartRef} /> ); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 3314e47..abaa984 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,6 +1,7 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; +import { Toaster } from "sonner"; const inter = Inter({ subsets: ["latin"] }); @@ -17,6 +18,7 @@ export default function RootLayout({ return (
{children} +