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/package.json b/package.json index 6d06f7a76..6b6c56f5f 100644 --- a/package.json +++ b/package.json @@ -92,12 +92,12 @@ "browserslist-config-cozy": "0.4.0", "bundlemon": "3.1.0", "copyfiles": "2.4.1", - "cozy-client": "^48.8.0", + "cozy-client": "^51.6.0", "cozy-device-helper": "2.0.0", "cozy-flags": "^2.10.1", - "cozy-intent": "1.16.1", + "cozy-intent": "^2.29.1", "cozy-logger": "^1.9.0", - "cozy-stack-client": "^47.4.0", + "cozy-stack-client": "^51.6.0", "css-loader": "0.28.11", "cssnano": "4.1.11", "cssnano-preset-advanced": "4.0.8", @@ -181,9 +181,9 @@ "rooks": "^5.11.2" }, "peerDependencies": { - "cozy-client": ">=48.8.0", + "cozy-client": ">=51.6.0", "cozy-device-helper": "^2.0.0", - "cozy-intent": ">=1.3.0", + "cozy-intent": ">=2.29.1", "react": "^16.8.6", "react-dom": "^16.8.6" }, diff --git a/react/Paywall/Paywall.spec.jsx b/react/Paywall/Paywall.spec.jsx index 9fbfd144c..4e4f74965 100644 --- a/react/Paywall/Paywall.spec.jsx +++ b/react/Paywall/Paywall.spec.jsx @@ -42,15 +42,13 @@ describe('Paywall', () => { useInstanceInfo.mockReturnValue({ context: { data: { - attributes: { - enable_premium_links: enablePremiumLinks, - manager_url: 'http://mycozy.cloud' - } + enable_premium_links: enablePremiumLinks, + manager_url: 'http://mycozy.cloud' } }, instance: { data: { - attributes: { uuid: hasUuid ? '123' : null } + uuid: hasUuid ? '123' : null } }, isLoaded: true diff --git a/react/QualificationModal/Readme.md b/react/QualificationModal/Readme.md new file mode 100644 index 000000000..d4b47ed14 --- /dev/null +++ b/react/QualificationModal/Readme.md @@ -0,0 +1,28 @@ +```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}) + +; + + ({ updateMetadataAttribute: () => {}}) }}> +