From 68e1c69327a3473f88b9bc49db8458a7bd6c7335 Mon Sep 17 00:00:00 2001 From: Vu Bui Date: Fri, 23 Jul 2021 17:39:09 +0700 Subject: [PATCH] update --- index.js | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/index.js b/index.js index 7f9783f..1e16f44 100644 --- a/index.js +++ b/index.js @@ -39,6 +39,9 @@ function BookingWizard(props) { if(localStorage.getItem('caseObj')) { dispatch({ type: 'BW_CASE', payload: JSON.parse(localStorage.getItem('caseObj')) }) } + if(localStorage.getItem('bwHasBooked')) { + dispatch({type:'BW_HAS_BOOKED', payload: true}) + } }, []) useEffect(() => { @@ -90,10 +93,10 @@ function BookingWizard(props) { Confirm your services
- +
@@ -112,10 +115,10 @@ function BookingWizard(props) { Pick your time
- +
@@ -134,10 +137,10 @@ function BookingWizard(props) { Confirm your doctor
- +
@@ -156,10 +159,10 @@ function BookingWizard(props) { Payment information
- +
@@ -189,7 +192,7 @@ function BookingWizard(props) { {show &&
handleCloseModal()}>
} {show &&
- +
handleCloseModal()}>
{renderStep(step)}
@@ -204,15 +207,16 @@ function BookingWizard(props) { // - : - + */} {show &&
handleCloseModal()}>
} {show &&
- +
handleCloseModal()}>
{renderStep(step)}
@@ -223,7 +227,8 @@ function BookingWizard(props) { />
} -
+ {/* */} + } ) -- 2.14.0