Skip to content

Commit

Permalink
chore: removes chakra ui
Browse files Browse the repository at this point in the history
Removes ChakraUI from the project

closes #136
  • Loading branch information
anguspiv committed Apr 6, 2023
1 parent 299f336 commit 0027267
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2,466 deletions.
11 changes: 4 additions & 7 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import * as NextImage from 'next/image';
import { RouterContext } from 'next/dist/shared/lib/router-context';
import { ChakraProvider } from '@chakra-ui/react';
import { MockedProvider } from '@apollo/client/testing';
import { CssBaseline, ThemeProvider } from '@mui/material';
import theme from '@styles/theme';
Expand Down Expand Up @@ -62,12 +61,10 @@ export const globalTypes = {
};

const ThemeDecorator = (storyFn) => (
<ChakraProvider>
<ThemeProvider theme={theme}>
<CssBaseline />
{storyFn()}
</ThemeProvider>
</ChakraProvider>
<ThemeProvider theme={theme}>
<CssBaseline />
{storyFn()}
</ThemeProvider>
);

export const decorators = [ThemeDecorator];

0 comments on commit 0027267

Please sign in to comment.