From f8f77da8928f2e8ee8f58f214bcf9ce69425f371 Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Thu, 14 Sep 2023 13:19:54 +0400 Subject: [PATCH] Update theme usage and meta tags --- app/layout.tsx | 7 ++++++- theme.ts | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/layout.tsx b/app/layout.tsx index a9a899b..dc491d3 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,6 +1,7 @@ import '@mantine/core/styles.css'; import React from 'react'; import { MantineProvider, ColorSchemeScript } from '@mantine/core'; +import { theme } from '../theme'; export const metadata = { title: 'Mantine Next.js template', @@ -13,9 +14,13 @@ export default function RootLayout({ children }: { children: any }) { + - {children} + {children} ); diff --git a/theme.ts b/theme.ts index 223cced..7fdf832 100644 --- a/theme.ts +++ b/theme.ts @@ -1,3 +1,5 @@ +'use client'; + import { createTheme } from '@mantine/core'; export const theme = createTheme({