mirror of
https://github.com/status-im/dappconnect-chat-sdk.git
synced 2025-03-01 22:40:40 +00:00
* add icorrect icon * update correct icon * add radix toast dep * set isolation Co-authored-by: Pavel <prichodko@users.noreply.github.com> * add toast Co-authored-by: Pavel <prichodko@users.noreply.github.com> * move ToastContainer to separate file * add custom fn --------- Co-authored-by: Pavel <prichodko@users.noreply.github.com> Co-authored-by: Pavel Prichodko <14926950+prichodko@users.noreply.github.com>
25 lines
512 B
TypeScript
25 lines
512 B
TypeScript
import { Provider, ToastContainer } from '../src'
|
|
import { Parameters, Decorator } from '@storybook/react'
|
|
|
|
import './reset.css'
|
|
|
|
export const parameters: Parameters = {
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
}
|
|
|
|
const withThemeProvider: Decorator = (Story, _context) => {
|
|
return (
|
|
<Provider>
|
|
<Story />
|
|
<ToastContainer />
|
|
</Provider>
|
|
)
|
|
}
|
|
export const decorators = [withThemeProvider]
|