From 2de7bbf32eb312433a3ab412de82deab04f3ec31 Mon Sep 17 00:00:00 2001 From: alpaca Date: Sun, 3 Mar 2024 20:03:04 +0900 Subject: [PATCH] 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. --- apps/www/content/docs/installation/next.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/content/docs/installation/next.mdx b/apps/www/content/docs/installation/next.mdx index 633bb6c7d99..7f5b9894cc7 100644 --- a/apps/www/content/docs/installation/next.mdx +++ b/apps/www/content/docs/installation/next.mdx @@ -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", })