mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Minor changes
This commit is contained in:
parent
0b48daf28c
commit
65fd0f146b
2 changed files with 7 additions and 7 deletions
|
|
@ -1,17 +1,17 @@
|
|||
module.exports = {
|
||||
"stories": [
|
||||
stories: [
|
||||
"../stories/**/*.stories.mdx",
|
||||
"../stories/**/*.stories.@(js|jsx|ts|tsx)"
|
||||
],
|
||||
"addons": [
|
||||
addons: [
|
||||
"@storybook/addon-links",
|
||||
"@storybook/addon-essentials",
|
||||
"@storybook/addon-interactions",
|
||||
"storybook-addon-next-router"
|
||||
],
|
||||
"framework": "@storybook/react",
|
||||
"core": {
|
||||
"builder": "webpack5"
|
||||
framework: "@storybook/react",
|
||||
core: {
|
||||
builder: "webpack5"
|
||||
},
|
||||
typescript: {
|
||||
reactDocgen: false
|
||||
|
|
|
|||
|
|
@ -37,13 +37,13 @@ const Template = ({ showToast, position }: { showToast: () => void; position?: T
|
|||
</div>
|
||||
)
|
||||
|
||||
export const SuccessSnackbar: ComponentStory<typeof Toaster> = (args) => {
|
||||
export const SuccessSnackbar: ComponentStory<typeof Toaster> = (args: any) => {
|
||||
return (
|
||||
<Template {...args} showToast={() => showSuccessToast('Success Message')} />
|
||||
)
|
||||
}
|
||||
|
||||
export const ErrorSnackbar: ComponentStory<typeof Toaster> = (args) => {
|
||||
export const ErrorSnackbar: ComponentStory<typeof Toaster> = (args: any) => {
|
||||
return (
|
||||
<Template {...args} showToast={() => showErrorToast('Error Message!')} />
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue