Skip to content

Commit 03cf678

Browse files
feat: update to uikit5 (#62)
1 parent 7ce39bc commit 03cf678

File tree

7 files changed

+175
-98
lines changed

7 files changed

+175
-98
lines changed

.storybook/decorators/withTheme.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

.storybook/preview.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import '@gravity-ui/uikit/styles/styles.scss';
2-
31
import React from 'react';
42
import {ThemeProvider} from '@gravity-ui/uikit';
53

4+
import '@gravity-ui/uikit/styles/styles.scss';
5+
66
import {configure, Lang} from '../src/utils';
77

8-
import {withTheme} from './decorators/withTheme';
98
import {withLang} from './decorators/withLang';
109

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

2322
return (
24-
<ThemeProvider>
23+
<ThemeProvider theme={theme}>
2524
<Story {...context} />
2625
</ThemeProvider>
2726
);
2827
};
2928

30-
export const decorators = [withTheme, withLang, withContextProvider];
29+
export const decorators = [withLang, withContextProvider];
3130

3231
export const parameters = {
3332
jsx: {showFunctions: true},

0 commit comments

Comments
 (0)