Skip to content

Commit

Permalink
Remove unused theme object
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Nov 21, 2023
1 parent b743a72 commit 1aa0be8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React, { useEffect } from 'react';
import { addons } from '@storybook/preview-api';
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
import { MantineProvider, useMantineColorScheme } from '@mantine/core';
import { theme } from '../theme';

const channel = addons.getChannel();

Expand All @@ -21,5 +20,5 @@ function ColorSchemeWrapper({ children }: { children: React.ReactNode }) {

export const decorators = [
(renderStory: any) => <ColorSchemeWrapper>{renderStory()}</ColorSchemeWrapper>,
(renderStory: any) => <MantineProvider theme={theme}>{renderStory()}</MantineProvider>,
(renderStory: any) => <MantineProvider>{renderStory()}</MantineProvider>,
];
2 changes: 0 additions & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { MantineProvider, DirectionProvider, localStorageColorSchemeManager } fr
import { HotKeysHandler } from '@/components/HotKeysHandler';
import { Search } from '@/components/Search';
import { GaScript } from '@/components/GaScript';
import { theme } from '../theme';

export default function App({ Component, pageProps }: any) {
return (
Expand All @@ -37,7 +36,6 @@ export default function App({ Component, pageProps }: any) {

<DirectionProvider initialDirection="ltr" detectDirection={false}>
<MantineProvider
theme={theme}
defaultColorScheme="auto"
colorSchemeManager={localStorageColorSchemeManager({ key: 'mantine-ui-color-scheme' })}
>
Expand Down
5 changes: 0 additions & 5 deletions theme.ts

This file was deleted.

0 comments on commit 1aa0be8

Please sign in to comment.