Skip to content

Commit

Permalink
fix: font variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed May 27, 2024
1 parent 1c81a19 commit 22e8761
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/app/src/app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default async function RootLayout({
return (
<html lang={params.lang} suppressHydrationWarning>
<body
className={cn("h-dvh min-h-dvh bg-background font-sans antialiased", fontSans.variable)}
className={cn("h-dvh min-h-dvh bg-background font-sans antialiased", fontSans.variable, fontSans.className)}
suppressHydrationWarning
>
<RootProviders lang={params.lang as Locale}>{children}</RootProviders>
Expand Down
4 changes: 3 additions & 1 deletion apps/app/src/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default async function Page404MatchAll() {
})
return (
<html lang={params?.lang ?? i18n.defaultLocale}>
<body className={cn("h-dvh min-h-dvh bg-background font-sans antialiased", fontSans.variable)}>
<body
className={cn("h-dvh min-h-dvh bg-background font-sans antialiased", fontSans.variable, fontSans.className)}
>
<UIProvider>
<main className="container m-auto flex min-h-screen flex-1 flex-col items-center justify-center gap-3">
<h1 className="text-4xl font-bold">{dictionary.notFound}</h1>
Expand Down
4 changes: 3 additions & 1 deletion apps/landing/src/app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export default function RootLayout({ children, params }: { children: React.React

return (
<html lang={params.lang}>
<body className={cn("antialiaseds bg-background min-h-screen font-sans", fontSans.variable)}>{children}</body>
<body className={cn("antialiaseds bg-background min-h-screen font-sans", fontSans.variable, fontSans.className)}>
{children}
</body>
</html>
)
}

0 comments on commit 22e8761

Please sign in to comment.