Skip to content

Commit

Permalink
fix: fix storybook decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
sashtje committed Oct 8, 2023
1 parent 1ef97f7 commit 2e44a43
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { addDecorator } from '@storybook/react';

import { StyleDecorator } from '../../src/shared/config/storybook/StyleDecorator/StyleDecorator';
import { ThemeDecorator } from '../../src/shared/config/storybook/ThemeDecorator/ThemeDecorator';
import { RouterDecorator } from '../../src/shared/config/storybook/RouterDecorator/RouterDecorator';
import { SuspenseDecorator } from '../../src/shared/config/storybook/SuspenseDecorator/SuspenseDecorator';
import { Theme } from '../../src/shared/const/theme';
import { StoreDecorator } from '../../src/shared/config/storybook/StoreDecorator/StoreDecorator';
import { ThemeDecorator } from '../../src/shared/config/storybook/ThemeDecorator/ThemeDecorator';

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
Expand All @@ -27,5 +28,10 @@ export const parameters = {

addDecorator(StyleDecorator);
addDecorator(ThemeDecorator(Theme.LIGHT));
addDecorator(
StoreDecorator({
user: { authData: { jsonSettings: {} } },
}),
);
addDecorator(RouterDecorator);
addDecorator(SuspenseDecorator);

0 comments on commit 2e44a43

Please sign in to comment.