Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-essentials', '@storybook/preset-scss', '@storybook/addon-docs'],
addons: [
{
name: '@storybook/addon-essentials',
options: {
controls: false,
actions: false,
},
},
'@storybook/preset-scss',
],
framework: {
name: '@storybook/react-webpack5',
options: {fastRefresh: true},
Expand Down
12 changes: 1 addition & 11 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ import {withTheme, withLang} from './decorators';

export const decorators = [withTheme, withLang];

export const parameters = {
actions: {argTypesRegex: '^on[A-Z].*'},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};

export const globalTypes = {
theme: {
defaultValue: 'light',
Expand All @@ -37,4 +27,4 @@ export const globalTypes = {
],
},
},
}
};