From 4c0db8205c87b3829eecc001c1d908914bdb0adc Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 17 Jan 2019 10:30:11 +0100 Subject: [PATCH] =?UTF-8?q?Redirige=20vers=20le=20bon=20simulateur=20si=20?= =?UTF-8?q?le=20choix=20du=20statut=20du=20dirigeant=20a=20d=C3=A9j=C3=A0?= =?UTF-8?q?=20=C3=A9t=C3=A9=20fait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/ui/Button/button.css | 1 + source/selectors/companyStatusSelectors.js | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/source/components/ui/Button/button.css b/source/components/ui/Button/button.css index a2925bf00..6669b494b 100644 --- a/source/components/ui/Button/button.css +++ b/source/components/ui/Button/button.css @@ -80,6 +80,7 @@ border-color: white; color: white; } + .ui__.button.simple { border: none; } diff --git a/source/selectors/companyStatusSelectors.js b/source/selectors/companyStatusSelectors.js index 398c3d3b5..2273e90e3 100644 --- a/source/selectors/companyStatusSelectors.js +++ b/source/selectors/companyStatusSelectors.js @@ -194,6 +194,15 @@ export const régimeSelector = (state: { inFranceApp: State }): 'indépendant' const companyStatusChoice = state.inFranceApp.companyStatusChoice const companyLegalStatus = state.inFranceApp.companyLegalStatus if (!companyStatusChoice) { + if (companyLegalStatus.directorStatus === 'SALARIED') { + return "assimilé-salarié" + } + if (companyLegalStatus.directorStatus === 'SELF-EMPLOYED') { + return "indépendant" + } + if(companyLegalStatus.microEnterprise === true) { + return "micro-entreprise" + } return null; } if(companyStatusChoice.includes('micro-entreprise')) {