From cf6e4f430c186ea1a5c13185feff7e8e03f19bed Mon Sep 17 00:00:00 2001 From: Bastien Dumont <bdumont@grandlyon.com> Date: Tue, 23 Apr 2024 14:17:38 +0200 Subject: [PATCH] remove prop showRelaunch --- .../Connection/GRDFConnect/GrdfWaitConsent.tsx | 15 +++++---------- src/components/Consumption/ConsumptionView.tsx | 2 +- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/components/Connection/GRDFConnect/GrdfWaitConsent.tsx b/src/components/Connection/GRDFConnect/GrdfWaitConsent.tsx index 27811b813..1a5f8def6 100644 --- a/src/components/Connection/GRDFConnect/GrdfWaitConsent.tsx +++ b/src/components/Connection/GRDFConnect/GrdfWaitConsent.tsx @@ -9,11 +9,7 @@ import { updateFluidConnection } from 'store/global/global.slice' import { useAppDispatch, useAppSelector } from 'store/hooks' import './GrdfWaitConsent.scss' -export const GrdfWaitConsent = ({ - showRelaunch, -}: { - showRelaunch: boolean -}) => { +export const GrdfWaitConsent = () => { const { t } = useI18n() const dispatch = useAppDispatch() const { fluidStatus } = useAppSelector(state => state.ecolyo.global) @@ -62,11 +58,10 @@ export const GrdfWaitConsent = ({ <br /> <span>{t('auth.grdfgrandlyon.waiting.comeback')}</span> </div> - {showRelaunch && ( - <Button className="btnPrimary" onClick={updateKonnector}> - {t('auth.grdfgrandlyon.waiting.button_done')} - </Button> - )} + + <Button className="btnPrimary" onClick={updateKonnector}> + {t('auth.grdfgrandlyon.waiting.button_done')} + </Button> </div> ) } diff --git a/src/components/Consumption/ConsumptionView.tsx b/src/components/Consumption/ConsumptionView.tsx index 9a241c566..75f3c0fc7 100644 --- a/src/components/Consumption/ConsumptionView.tsx +++ b/src/components/Consumption/ConsumptionView.tsx @@ -230,7 +230,7 @@ const ConsumptionView = ({ fluidType }: { fluidType: FluidType }) => { <FluidButtons activeFluid={fluidType} key={updateKey} /> {isWaitingForConsent ? ( - <GrdfWaitConsent showRelaunch={true} /> + <GrdfWaitConsent /> ) : ( <> {showOfflineData && ( -- GitLab