Introduce prettier
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
import "@/styles/globals.css";
|
||||
import { fontSans } from "@/config/fonts";
|
||||
import { Providers } from "./providers";
|
||||
import Header from "./Header";
|
||||
import clsx from "clsx";
|
||||
import { getTranslations } from "next-intl/server";
|
||||
import '@/styles/globals.css';
|
||||
import { fontSans } from '@/config/fonts';
|
||||
import { Providers } from './providers';
|
||||
import Header from './Header';
|
||||
import clsx from 'clsx';
|
||||
import { getTranslations } from 'next-intl/server';
|
||||
|
||||
export async function generateMetadata({ params: { locale } }) {
|
||||
const t = await getTranslations({ locale, namespace: "Header" });
|
||||
const t = await getTranslations({ locale, namespace: 'Header' });
|
||||
return {
|
||||
title: t("title"),
|
||||
description: t("description"),
|
||||
title: t('title'),
|
||||
description: t('description'),
|
||||
icons: {
|
||||
icon: "/favicon/favicon.ico",
|
||||
shortcut: "/favicon/favicon-16x16.png",
|
||||
apple: "/favicon/apple-touch-icon.png",
|
||||
icon: '/favicon/favicon.ico',
|
||||
shortcut: '/favicon/favicon-16x16.png',
|
||||
apple: '/favicon/apple-touch-icon.png',
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -28,16 +28,8 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang={locale} suppressHydrationWarning>
|
||||
<head />
|
||||
<body
|
||||
className={clsx(
|
||||
"min-h-[calc(100vh-64px)] bg-background font-sans antialiased",
|
||||
fontSans.variable
|
||||
)}
|
||||
>
|
||||
<Providers
|
||||
themeProps={{ attribute: "class", defaultTheme: "light" }}
|
||||
tokenProps={{ locale: locale }}
|
||||
>
|
||||
<body className={clsx('min-h-[calc(100vh-64px)] bg-background font-sans antialiased', fontSans.variable)}>
|
||||
<Providers themeProps={{ attribute: 'class', defaultTheme: 'light' }} tokenProps={{ locale: locale }}>
|
||||
<div className="relative flex flex-col min-h-screen light:bg-neutral-50 dark:bg-neutral-800">
|
||||
<Header locale={locale} />
|
||||
<main>{children}</main>
|
||||
|
||||
Reference in New Issue
Block a user