Commit ddfb6cdcc07cb83fb3167390b6f813ebe3673072

Authored by Vu Bui
1 parent c638d8e90d
Exists in master

update

Showing 1 changed file with 10 additions and 3 deletions Side-by-side Diff

... ... @@ -77,10 +77,17 @@ function BookingWizard(props) {
77 77 }, [commonStore.activeStep])
78 78  
79 79 useEffect(() => {
80   -
81 80 setShow(commonStore?.showBookingModal)
82 81 }, [commonStore.showBookingModal])
83 82  
  83 + useEffect(() => {
  84 + if(show) {
  85 + document.body.classList.add('bw-show-popup')
  86 + }else {
  87 + document.body.classList.remove('bw-show-popup')
  88 + }
  89 + }, [show])
  90 +
84 91  
85 92 const handleCloseModal = () => {
86 93 dispatch({ type: 'BW_SHOW_BOOKING_MODAL', payload: false })
... ... @@ -106,7 +113,7 @@ function BookingWizard(props) {
106 113 <div className="bw-col-left">
107 114 {process.env.REACT_APP_NAME === 'rce' && <i className="bw-icon-health-care"></i>}
108 115 {process.env.REACT_APP_NAME === 'mm' && <i className="bw-icon-leaf"></i>}
109   - <span>Select your services</span>
  116 + {commonStore?.hasBooked ===true ?<span>YOUR SERVICE</span>:<span>Select your services</span>}
110 117 </div>
111 118 <div className="bw-col-right">
112 119 <div className="bw-btn bw-btn-primary">
... ... @@ -128,7 +135,7 @@ function BookingWizard(props) {
128 135 <div className="bw-row">
129 136 <div className="bw-col-left">
130 137 <i className="bw-icon-clock"></i>
131   - <span>Pick your time</span>
  138 + {commonStore?.hasBooked ===true ?<span>RESCHEDULE APPOINTMENT</span>:<span>MAKE APPOINTMENT</span>}
132 139 </div>
133 140 <div className="bw-col-right">
134 141 <div className="bw-btn bw-btn-primary">