Skip to content

Commit

Permalink
feat: update to uikit5 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemmufazalov authored Dec 12, 2023
1 parent 7ce39bc commit 03cf678
Show file tree
Hide file tree
Showing 7 changed files with 175 additions and 98 deletions.
16 changes: 0 additions & 16 deletions .storybook/decorators/withTheme.tsx

This file was deleted.

9 changes: 4 additions & 5 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import '@gravity-ui/uikit/styles/styles.scss';

import React from 'react';
import {ThemeProvider} from '@gravity-ui/uikit';

import '@gravity-ui/uikit/styles/styles.scss';

import {configure, Lang} from '../src/utils';

import {withTheme} from './decorators/withTheme';
import {withLang} from './decorators/withLang';

configure({lang: Lang.Ru});
Expand All @@ -21,13 +20,13 @@ const withContextProvider = (Story, context) => {
context.globals.background = theme;

return (
<ThemeProvider>
<ThemeProvider theme={theme}>
<Story {...context} />
</ThemeProvider>
);
};

export const decorators = [withTheme, withLang, withContextProvider];
export const decorators = [withLang, withContextProvider];

export const parameters = {
jsx: {showFunctions: true},
Expand Down
Loading

0 comments on commit 03cf678

Please sign in to comment.