diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index 11cf372..b4dd282 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -1,7 +1,8 @@ import '@mantine/core/styles.css'; -import { ColorSchemeScript, MantineProvider } from '@mantine/core'; + import { useEffect } from 'react'; import { useGlobals } from 'storybook/preview-api'; +import { ColorSchemeScript, MantineProvider } from '@mantine/core'; import { theme } from '../theme'; export const parameters = { diff --git a/app/layout.tsx b/app/layout.tsx index 08f8632..8cc6eb2 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,6 +1,7 @@ import '@mantine/core/styles.css'; -import { ColorSchemeScript, mantineHtmlProps, MantineProvider } from '@mantine/core'; + import React from 'react'; +import { ColorSchemeScript, mantineHtmlProps, MantineProvider } from '@mantine/core'; import { theme } from '../theme'; export const metadata = { diff --git a/test-utils/render.tsx b/test-utils/render.tsx index 9290e86..c5e53b3 100644 --- a/test-utils/render.tsx +++ b/test-utils/render.tsx @@ -1,5 +1,5 @@ -import { MantineProvider } from '@mantine/core'; import { render as testingLibraryRender } from '@testing-library/react'; +import { MantineProvider } from '@mantine/core'; import { theme } from '../theme'; export function render(ui: React.ReactNode) { diff --git a/theme.ts b/theme.ts index 7fdf832..4572bc4 100644 --- a/theme.ts +++ b/theme.ts @@ -2,6 +2,4 @@ import { createTheme } from '@mantine/core'; -export const theme = createTheme({ - /* Put your mantine theme override here */ -}); +export const theme = createTheme({/* Put your mantine theme override here */});