Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
fix(storybook): fix KaotoToolbar story
Browse files Browse the repository at this point in the history
  • Loading branch information
kahboom committed May 16, 2023
1 parent a959b0f commit 3cf8e0f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const {
} = require('webpack-merge');
const prod = require('../webpack.prod.js');
const path = require('path');
const webpack = require('webpack');
const { version } = require('../package.json');

module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
staticDirs: ['../public'],
Expand All @@ -11,6 +14,9 @@ module.exports = {
// Update your babel configuration here
return options;
},
docs: {
autodocs: true
},
typescript: {
check: false,
checkOptions: {},
Expand Down Expand Up @@ -59,9 +65,12 @@ module.exports = {
],
});

updatedConfig.plugins.push(
new webpack.DefinePlugin({
KAOTO_VERSION: JSON.stringify(version),
}),
);

return updatedConfig;
},
docs: {
autodocs: true
}
};
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (process.env.NODE_ENV === 'development') {
}

export const decorators = [
(Story) => (
(Story: any) => (
<AlertProvider>
<Story />
</AlertProvider>
Expand Down

0 comments on commit 3cf8e0f

Please sign in to comment.