Skip to content

Commit

Permalink
feat!: update @gravity-ui/uikit to verison 6 (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
smsochneg authored Mar 4, 2024
1 parent 367180a commit 7cf7347
Show file tree
Hide file tree
Showing 5 changed files with 249 additions and 98 deletions.
6 changes: 2 additions & 4 deletions demo/utils/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';

import {configure as configureComponents} from '@gravity-ui/components';
import {ThemeProvider, configure as configureUikit} from '@gravity-ui/uikit';
import {ThemeProvider, configure} from '@gravity-ui/uikit';
import type {Decorator} from '@storybook/react'; // eslint-disable-line import/no-extraneous-dependencies

import {configure as configureYfmEditor} from '../../src';
Expand All @@ -25,8 +24,7 @@ export const withThemeProvider: Decorator = (StoryItem, context) => {

export const withLang: Decorator = (StoryItem, context) => {
const lang = context.globals.lang;
configureUikit({lang});
configureComponents({lang});
configure({lang});
configureYfmEditor({lang});

return <StoryItem {...context} />;
Expand Down
Loading

0 comments on commit 7cf7347

Please sign in to comment.