fix: font

This commit is contained in:
Aslam H
2024-08-11 05:47:38 +07:00
parent 413110bb3a
commit eb8d7f7eee

View File

@@ -1,5 +1,5 @@
import type { Metadata } from "next"
// import { Inter as FontSans } from "next/font/google"
import { Inter as FontSans } from "next/font/google"
import { Inter } from "next/font/google"
import { cn } from "@/lib/utils"
import { ThemeProvider } from "@/lib/providers/theme-provider"
@@ -9,12 +9,7 @@ import { JotaiProvider } from "@/lib/providers/jotai-provider"
import { Toaster } from "@/components/ui/sonner"
import { ConfirmProvider } from "@/lib/providers/confirm-provider"
// const fontSans = FontSans({
// subsets: ["latin"],
// variable: "--font-sans"
// })
const inter = Inter({
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans"
})
@@ -31,7 +26,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en" className="h-full w-full" suppressHydrationWarning>
<body className={cn("h-full w-full font-sans antialiased", inter.variable)}>
<body className={cn("h-full w-full font-sans antialiased", fontSans.variable)}>
<JazzProvider>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<JotaiProvider>