mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
245952f236
* Minimum changes to get storybook working Undo path changes * Add build:storybook scripts to package.json * Add storybook deployer * Add storybook:deploy to package.json * Update circle ci config * Update yarn.lock * Remove addon-info * Update yarn.lock file to reflect removing of addon-info Co-authored-by: Dan J Miller <danjm.com@gmail.com>
20 lines
382 B
JavaScript
20 lines
382 B
JavaScript
import React from 'react'
|
|
import { addDecorator } from '@storybook/react'
|
|
import { withKnobs } from '@storybook/addon-knobs/react'
|
|
|
|
const styles = {
|
|
height: '100vh',
|
|
display: 'flex',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
}
|
|
|
|
const CenterDecorator = story => (
|
|
<div style={styles}>
|
|
{ story() }
|
|
</div>
|
|
)
|
|
|
|
addDecorator(withKnobs)
|
|
addDecorator(CenterDecorator)
|