From 3ea52b42e32f3b786028eca9606f51ee866e5253 Mon Sep 17 00:00:00 2001 From: pdovhomilja <41537049+pdovhomilja@users.noreply.github.com> Date: Thu, 2 Nov 2023 09:38:02 +0100 Subject: [PATCH] Update - CRM - CRMKanban - fix css issue Added Geist font to NextCRM --- .../crm/dashboard/_components/CRMKanban.tsx | 2 +- app/[locale]/layout.tsx | 24 +++++++++++-------- package-lock.json | 14 +++++++++++ package.json | 1 + 4 files changed, 30 insertions(+), 11 deletions(-) diff --git a/app/[locale]/(routes)/crm/dashboard/_components/CRMKanban.tsx b/app/[locale]/(routes)/crm/dashboard/_components/CRMKanban.tsx index 678b60e..2f1fd7e 100644 --- a/app/[locale]/(routes)/crm/dashboard/_components/CRMKanban.tsx +++ b/app/[locale]/(routes)/crm/dashboard/_components/CRMKanban.tsx @@ -156,7 +156,7 @@ const CRMKanban = ({ {stage.name} diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index d056973..85a0591 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -1,8 +1,11 @@ import "./globals.css"; + import { Inter } from "next/font/google"; -import { ReactNode } from 'react'; -import { notFound } from 'next/navigation'; -import { createTranslator, NextIntlClientProvider } from 'next-intl'; +import { GeistSans, GeistMono } from "geist/font"; + +import { ReactNode } from "react"; +import { notFound } from "next/navigation"; +import { createTranslator, NextIntlClientProvider } from "next-intl"; import { Toaster } from "@/components/ui/toaster"; import { ThemeProvider } from "@/app/providers/ThemeProvider"; @@ -11,7 +14,7 @@ const inter = Inter({ subsets: ["latin"] }); type Props = { children: ReactNode; - params: {locale: string}; + params: { locale: string }; }; async function getLocales(locale: string) { @@ -22,25 +25,26 @@ async function getLocales(locale: string) { } } -export async function generateMetadata({params: {locale}}: Props) { +export async function generateMetadata({ params: { locale } }: Props) { const messages = await getLocales(locale); - const t = createTranslator({locale, messages}); + const t = createTranslator({ locale, messages }); return { - title: t('RootLayout.title'), - description: t('RootLayout.description') + title: t("RootLayout.title"), + description: t("RootLayout.description"), }; } export default async function RootLayout({ children, - params: {locale} + params: { locale }, }: Props) { const messages = await getLocales(locale); return ( + {/* */} @@ -51,4 +55,4 @@ export default async function RootLayout({ ); -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index 47c43c5..b2d680f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,6 +47,7 @@ "encoding": "^0.1.13", "eslint": "8.44.0", "eslint-config-next": "13.4.8", + "geist": "^1.0.0", "lucide-react": "^0.258.0", "moment": "^2.29.4", "next": "13.4.8", @@ -1905,6 +1906,11 @@ "glob": "7.1.7" } }, + "node_modules/@next/font": { + "version": "13.5.6", + "resolved": "https://registry.npmjs.org/@next/font/-/font-13.5.6.tgz", + "integrity": "sha512-urmUq05uCVJsBqAAJEV+xK5OTTodrSxdiG+351SOSjlWctywdBM6qX+K9pIe3K48RxjfnxlBbXjGyOJAji+pfw==" + }, "node_modules/@next/swc-darwin-arm64": { "version": "13.4.8", "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.8.tgz", @@ -8863,6 +8869,14 @@ "node": ">=10" } }, + "node_modules/geist": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/geist/-/geist-1.0.0.tgz", + "integrity": "sha512-7hqXZqIdSiFbXjlMZ8Ag0fBAW8RzUjIXPkh160rT4m4ECMtsKdFX+06e0mK28oRCpU+lOB1C5Es8qxzvv7H2Hg==", + "dependencies": { + "@next/font": "^13.5.6" + } + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", diff --git a/package.json b/package.json index 31f5fce..c1e8431 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "encoding": "^0.1.13", "eslint": "8.44.0", "eslint-config-next": "13.4.8", + "geist": "^1.0.0", "lucide-react": "^0.258.0", "moment": "^2.29.4", "next": "13.4.8",