update storybook to v8

This commit is contained in:
2024-03-16 16:06:39 +01:00
parent 92c57068af
commit 6ba32251bc
3 changed files with 1720 additions and 2607 deletions

View File

@@ -1,14 +1,12 @@
import type { Preview } from '@storybook/react'
import '@fontsource/roboto/400.css'
import '../src/styles/index.scss'
import { withRouter } from 'storybook-addon-react-router-v6'
import { themes } from '@storybook/theming'
import { ToastContainer } from 'react-toastify'
import 'react-toastify/dist/ReactToastify.min.css'
const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
@@ -29,7 +27,7 @@ const preview: Preview = {
},
},
}
export const decorators = [withRouter, withToasts]
export const decorators = [withToasts]
export default preview
function withToasts(Story: any) {