-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae20846
commit e35d5ab
Showing
5 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; | ||
|
||
module.exports = { | ||
stories: [ | ||
'../src/docs/*.@(mdx|tsx)', | ||
], | ||
webpack: (config = {}, options = {}) => { | ||
return { | ||
...config, | ||
plugins: [ | ||
...config.plugins, | ||
// new BundleAnalyzerPlugin() | ||
] | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import React from 'react'; | ||
import { useStore } from '@component-controls/store'; | ||
import { Button, ButtonProps } from '../components/Button'; | ||
|
||
export default { | ||
title: 'Library/Components/Button', | ||
}; | ||
|
||
export const overview = (props: ButtonProps) => ( | ||
<Button {...props}>click me</Button> | ||
); | ||
export const overview = (props: ButtonProps) => { | ||
const store = useStore(); | ||
return <Button {...props}>{store.config.siteTitle}</Button>; | ||
}; | ||
|
||
overview.component = Button; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters