Merge pull request #216 from jonathan-irvin/fix-font
fix: font reload issues with next/font
This commit is contained in:
commit
54b4d6c079
|
|
@ -1,18 +1,14 @@
|
|||
import interClass from '@gitroom/react/helpers/inter.font';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
import './global.scss';
|
||||
import 'react-tooltip/dist/react-tooltip.css';
|
||||
import '@copilotkit/react-ui/styles.css';
|
||||
|
||||
import LayoutContext from '@gitroom/frontend/components/layout/layout.context';
|
||||
import { ReactNode } from 'react';
|
||||
import { Chakra_Petch } from 'next/font/google';
|
||||
import { isGeneral } from '@gitroom/react/helpers/is.general';
|
||||
import PlausibleProvider from 'next-plausible';
|
||||
import clsx from 'clsx';
|
||||
|
||||
const chakra = Chakra_Petch({ weight: '400', subsets: ['latin'] });
|
||||
import "@fontsource/chakra-petch";
|
||||
|
||||
export default async function AppLayout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
|
|
@ -24,7 +20,7 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
|
|||
sizes="any"
|
||||
/>
|
||||
</head>
|
||||
<body className={clsx(chakra.className, 'text-primary dark')}>
|
||||
<body className={clsx('chakra-petch', 'text-primary dark')}>
|
||||
<PlausibleProvider domain={isGeneral() ? "postiz.com" : "gitroom.com"}>
|
||||
<LayoutContext>{children}</LayoutContext>
|
||||
</PlausibleProvider>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
"@copilotkit/react-textarea": "1.1.0",
|
||||
"@copilotkit/react-ui": "1.1.0",
|
||||
"@copilotkit/runtime": "1.1.0",
|
||||
"@fontsource/chakra-petch": "^5.0.22",
|
||||
"@hookform/resolvers": "^3.3.4",
|
||||
"@mantine/core": "^5.10.5",
|
||||
"@mantine/dates": "^5.10.5",
|
||||
|
|
@ -6242,6 +6243,12 @@
|
|||
"resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.4.tgz",
|
||||
"integrity": "sha512-dWO2pw8hhi+WrXq1YJy2yCuWoL20PddgGaqTgVe4cOS9Q6qklXCiA1tJEqX6BEwRNSCP84/afac9hd4MS+zEUA=="
|
||||
},
|
||||
"node_modules/@fontsource/chakra-petch": {
|
||||
"version": "5.0.22",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/chakra-petch/-/chakra-petch-5.0.22.tgz",
|
||||
"integrity": "sha512-dYhrz0As8T7H7NGeMbcwAf84xzlxzdfcXBqcgO5lWAGezud8zrrJKGHB/9To5fNQ1ZoqDVplXy3Hu+Ye7tFbvw==",
|
||||
"license": "OFL-1.1"
|
||||
},
|
||||
"node_modules/@google/generative-ai": {
|
||||
"version": "0.11.5",
|
||||
"resolved": "https://registry.npmjs.org/@google/generative-ai/-/generative-ai-0.11.5.tgz",
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
"@copilotkit/react-textarea": "1.1.0",
|
||||
"@copilotkit/react-ui": "1.1.0",
|
||||
"@copilotkit/runtime": "1.1.0",
|
||||
"@fontsource/chakra-petch": "^5.0.22",
|
||||
"@hookform/resolvers": "^3.3.4",
|
||||
"@mantine/core": "^5.10.5",
|
||||
"@mantine/dates": "^5.10.5",
|
||||
|
|
|
|||
Loading…
Reference in New Issue