From b6703ecb58a14c80f2658c160b1af079b6b0ae03 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 21 Apr 2022 12:22:39 +0200 Subject: [PATCH] =?UTF-8?q?Corrige=20l'espacement=20des=20banni=C3=A8res?= =?UTF-8?q?=20apr=C3=A8s=20le=20simulateur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PreviousSimulationBanner.tsx | 8 +- site/source/components/Simulation/index.tsx | 82 ++++++++++--------- 2 files changed, 47 insertions(+), 43 deletions(-) diff --git a/site/source/components/PreviousSimulationBanner.tsx b/site/source/components/PreviousSimulationBanner.tsx index 9e71da224..7122a13f6 100644 --- a/site/source/components/PreviousSimulationBanner.tsx +++ b/site/source/components/PreviousSimulationBanner.tsx @@ -14,8 +14,8 @@ export default function PreviousSimulationBanner() { const dispatch = useDispatch() return ( -
-
+ ) } diff --git a/site/source/components/Simulation/index.tsx b/site/source/components/Simulation/index.tsx index 8ac3081ae..425d3a0c0 100644 --- a/site/source/components/Simulation/index.tsx +++ b/site/source/components/Simulation/index.tsx @@ -62,48 +62,52 @@ export default function Simulation({ {children} - -
- {!firstStepCompleted && ( + +
+ {!firstStepCompleted && ( + <> + + + + )} +
+ {firstStepCompleted && ( <> - - +
+ {results} +
+ )} -
- {firstStepCompleted && ( - <> -
- {results} -
- - - )} -
- - {afterQuestionsSlot} - {existingCompany && ( - - Ce simulateur a été prérempli avec la situation de votre - entreprise.{' '} - ( - - Voir ma situation - - )} - > - {(close) => } - - - )} - {firstStepCompleted && !hideDetails && ( - <> - - - - )} -
+
+ {afterQuestionsSlot} + {existingCompany && ( + + Ce simulateur a été prérempli avec la situation de votre + entreprise.{' '} + ( + + Voir ma situation + + )} + > + {(close) => } + + + )} + {firstStepCompleted && !hideDetails && ( + <> + + + + )} +
+
{firstStepCompleted && !hideDetails && (