Skip to content
Snippets Groups Projects
Commit cf6e4f43 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

remove prop showRelaunch

parent b831bdbe
No related branches found
No related tags found
1 merge request!1165chore: remove error modal flashing
...@@ -9,11 +9,7 @@ import { updateFluidConnection } from 'store/global/global.slice' ...@@ -9,11 +9,7 @@ import { updateFluidConnection } from 'store/global/global.slice'
import { useAppDispatch, useAppSelector } from 'store/hooks' import { useAppDispatch, useAppSelector } from 'store/hooks'
import './GrdfWaitConsent.scss' import './GrdfWaitConsent.scss'
export const GrdfWaitConsent = ({ export const GrdfWaitConsent = () => {
showRelaunch,
}: {
showRelaunch: boolean
}) => {
const { t } = useI18n() const { t } = useI18n()
const dispatch = useAppDispatch() const dispatch = useAppDispatch()
const { fluidStatus } = useAppSelector(state => state.ecolyo.global) const { fluidStatus } = useAppSelector(state => state.ecolyo.global)
...@@ -62,11 +58,10 @@ export const GrdfWaitConsent = ({ ...@@ -62,11 +58,10 @@ export const GrdfWaitConsent = ({
<br /> <br />
<span>{t('auth.grdfgrandlyon.waiting.comeback')}</span> <span>{t('auth.grdfgrandlyon.waiting.comeback')}</span>
</div> </div>
{showRelaunch && (
<Button className="btnPrimary" onClick={updateKonnector}> <Button className="btnPrimary" onClick={updateKonnector}>
{t('auth.grdfgrandlyon.waiting.button_done')} {t('auth.grdfgrandlyon.waiting.button_done')}
</Button> </Button>
)}
</div> </div>
) )
} }
...@@ -230,7 +230,7 @@ const ConsumptionView = ({ fluidType }: { fluidType: FluidType }) => { ...@@ -230,7 +230,7 @@ const ConsumptionView = ({ fluidType }: { fluidType: FluidType }) => {
<FluidButtons activeFluid={fluidType} key={updateKey} /> <FluidButtons activeFluid={fluidType} key={updateKey} />
{isWaitingForConsent ? ( {isWaitingForConsent ? (
<GrdfWaitConsent showRelaunch={true} /> <GrdfWaitConsent />
) : ( ) : (
<> <>
{showOfflineData && ( {showOfflineData && (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment