mirror of
https://github.com/status-im/wakuconnect-chat-sdk.git
synced 2025-01-28 04:45:28 +00:00
91fe20549c
* feat: add skeleton placeholder components and stories * feat: adds gap messages component and stories * feat: add information box component and stories (WIP) * feat: add dismiss prop and more stories * fix: changes onDismiss existing function to onClose * feat: add sidebar skeleton loader * feat: makes the banner component more flexible * update information box * fix: changes from review * feat: add topbar-skeleton component * Fix Skeleton typo --------- Co-authored-by: Pavel Prichodko <14926950+prichodko@users.noreply.github.com>
27 lines
564 B
TypeScript
27 lines
564 B
TypeScript
import React from 'react'
|
|
import { Provider, ToastContainer } from '../src'
|
|
import { Parameters, Decorator } from '@storybook/react'
|
|
|
|
import './reset.css'
|
|
import './components.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]
|