Refactor to use ai/rsc (#253)

This commit is contained in:
Jeremy 2024-03-14 20:00:52 +03:00 committed by GitHub
parent 69ca8fcc22
commit e85ba803dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
66 changed files with 2799 additions and 740 deletions

View file

@ -1,4 +1,3 @@
import { Toaster } from 'react-hot-toast'
import { GeistSans } from 'geist/font/sans'
import { GeistMono } from 'geist/font/mono'
@ -7,6 +6,7 @@ import { cn } from '@/lib/utils'
import { TailwindIndicator } from '@/components/tailwind-indicator'
import { Providers } from '@/components/providers'
import { Header } from '@/components/header'
import { Toaster } from '@/components/ui/sonner'
export const metadata = {
metadataBase: new URL(`https://${process.env.VERCEL_URL}`),
@ -43,7 +43,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
GeistMono.variable
)}
>
<Toaster />
<Toaster position="top-center" />
<Providers
attribute="class"
defaultTheme="system"