mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-25 13:46:07 +00:00
docs(next-installation): Fixed type error in Next.js installation by removing export from fontSans (#2673)
This PR fixes the issue [#2337](https://github.com/shadcn-ui/ui/issues/2377). I removed `export` of `fontSans` from `app/layout.tsx`, which was causing a type error. I have ensured that this modification does not impact other functionalities. Your feedback on this pull request would be greatly appreciated. Thank you for your consideration.
This commit is contained in:
@@ -52,7 +52,7 @@ import { Inter as FontSans } from "next/font/google"
|
||||
|
||||
import { cn } from "../@/lib/utils"
|
||||
|
||||
export const fontSans = FontSans({
|
||||
const fontSans = FontSans({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-sans",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user