diff --git a/docs/styleguide.config.js b/docs/styleguide.config.js index 933530fe5..ee4c491b6 100644 --- a/docs/styleguide.config.js +++ b/docs/styleguide.config.js @@ -96,6 +96,7 @@ module.exports = { '../react/QualificationGrid', '../react/QualificationIconStack', '../react/QualificationItem', + '../react/QualificationModal', '../react/UploadQueue' ] }, diff --git a/react/QualificationModal/Readme.md b/react/QualificationModal/Readme.md new file mode 100644 index 000000000..592b5616e --- /dev/null +++ b/react/QualificationModal/Readme.md @@ -0,0 +1,23 @@ +```jsx +import DemoProvider from 'cozy-ui/docs/components/DemoProvider' +import QualificationModal from 'cozy-ui/transpiled/react/QualificationModal' +import Typography from 'cozy-ui/transpiled/react/Typography' +import CloudIcon from 'cozy-ui/transpiled/react/Icons/Cloud' +import FormControlLabel from 'cozy-ui/transpiled/react/FormControlLabel' +import RadioGroup from 'cozy-ui/transpiled/react/RadioGroup' +import Radio from 'cozy-ui/transpiled/react/Radios' +import FormControl from 'cozy-ui/transpiled/react/FormControl' +import Button from 'cozy-ui/transpiled/react/Buttons' + +initialState = { show: isTesting() ? true : false } + +const show = () => setState({show: true}) +const hide = () => setState({show: false}) + +; + + +