Init
This commit is contained in:
13
.storybook/previewDecorator.tsx
Normal file
13
.storybook/previewDecorator.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { MantineProvider } from '@mantine/core';
|
||||
import '@mantine/core/styles.css';
|
||||
|
||||
export function PreviewDecorator(Story: any, { parameters }: any) {
|
||||
console.log('Rendering decorator', parameters);
|
||||
return (
|
||||
<MantineProvider>
|
||||
<div style={{ height: 'calc(100vh - 64px)', width: 'calc(100vw - 64px)' }}>
|
||||
<Story key={'mainStory'} />
|
||||
</div>
|
||||
</MantineProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user