2022-04-24 22:36:47 +02:00
|
|
|
import { MantineProvider, ColorSchemeProvider } from '@mantine/core';
|
|
|
|
|
import { NotificationsProvider } from '@mantine/notifications';
|
|
|
|
|
|
|
|
|
|
export const parameters = { layout: 'fullscreen' };
|
|
|
|
|
|
|
|
|
|
function ThemeWrapper(props: { children: React.ReactNode }) {
|
|
|
|
|
return (
|
|
|
|
|
<ColorSchemeProvider colorScheme="light" toggleColorScheme={() => {}}>
|
2022-05-23 11:48:25 +02:00
|
|
|
<MantineProvider withGlobalStyles withNormalizeCSS>
|
2022-04-24 22:36:47 +02:00
|
|
|
<NotificationsProvider>{props.children}</NotificationsProvider>
|
|
|
|
|
</MantineProvider>
|
|
|
|
|
</ColorSchemeProvider>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const decorators = [(renderStory: Function) => <ThemeWrapper>{renderStory()}</ThemeWrapper>];
|