From 24ff1ad41c5c164d54874fc832f28bbb37005091 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 23 Aug 2018 10:42:23 +0200 Subject: [PATCH] =?UTF-8?q?Redirige=20vers=20la=20checklist=20une=20fois?= =?UTF-8?q?=20que=20le=20status=20a=20=C3=A9t=C3=A9=20choisi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/Company/RegistrationPending.js | 72 ------------------- .../pages/Company/index.js | 16 +++-- 2 files changed, 9 insertions(+), 79 deletions(-) delete mode 100644 source/sites/mycompanyinfrance.fr/pages/Company/RegistrationPending.js diff --git a/source/sites/mycompanyinfrance.fr/pages/Company/RegistrationPending.js b/source/sites/mycompanyinfrance.fr/pages/Company/RegistrationPending.js deleted file mode 100644 index 3250fb4bb..000000000 --- a/source/sites/mycompanyinfrance.fr/pages/Company/RegistrationPending.js +++ /dev/null @@ -1,72 +0,0 @@ -import React from 'react' -import { Link } from 'react-router-dom' -import siret from './siret.jpg' - -const DuringRegistration = () => ( - <> -

Registration pending

-

- If you have trouble completing your application, we can help. -

- -

Administrative papers

-

Once your business has been officially registered, you will receive:

- -

Siren and Siret

-

- The Siren number identifies your company while the Siret number identifies - each place of business operated by the same company. -

- Siret and siren number -

APE Code

-

- The APE code is used to classify your company’s main operations in the - French business nomenclature (« NAF »). It is also used to determine the - your applicable collective agreement as well as your occupational accident - rate. -

-

Next steps to do

-

- While your application is being processed, you can focus on the following - tasks:{' '} -

- -

- Finally, you can learn more about the social security system and simulate - the hiring of your first employee. - Simulate hiring costs -

- -) - -export default DuringRegistration diff --git a/source/sites/mycompanyinfrance.fr/pages/Company/index.js b/source/sites/mycompanyinfrance.fr/pages/Company/index.js index 9a9c26132..31ff3f534 100644 --- a/source/sites/mycompanyinfrance.fr/pages/Company/index.js +++ b/source/sites/mycompanyinfrance.fr/pages/Company/index.js @@ -1,5 +1,5 @@ import React from 'react' -import { Route, Switch } from 'react-router' +import { Route, Switch, Redirect } from 'react-router' import { animated, Transition } from 'react-spring' import * as Animate from 'Ui/animate' import DefineDirectorStatus from './DirectorStatus' @@ -7,9 +7,9 @@ import Find from './Find' import Home from './Home' import Liability from './Liability' import MainStatus from './MainStatus' +import { connect } from "react-redux"; import MinorityDirector from './MinorityDirector' import Microenterprise from './Microenterprise' -import RegistrationPending from './RegistrationPending' import NumberOfAssociate from './NumberOfAssociate' import CreationChecklist from './CreationChecklist' @@ -23,17 +23,19 @@ const withRouteAnimation = style => AnimatedComponent => { return withRouteAnimation; } -const CreateMyCompany = ({ match, location }) => ( +const CreateMyCompany = ({ match, location, companyStatusChoice }) => ( <> - + /> - + {companyStatusChoice ? + : + + }
( ) -export default CreateMyCompany +export default connect(state => ({ companyStatusChoice: state.inFranceApp.companyStatusChoice}))(CreateMyCompany)