|
|
@@ -8,7 +8,8 @@ import { Dates, TimeSlots } from "../../mockData/TimeSlotDetails"; |
|
|
|
|
|
|
|
interface OwnProps { |
|
|
|
month: string; |
|
|
|
getDate: (date: string) => void; |
|
|
|
getDate: () => void; |
|
|
|
HideTimeSlot: () => void; |
|
|
|
} |
|
|
|
|
|
|
|
const TimeSlot: React.FC<OwnProps> = (props) => { |
|
|
@@ -49,7 +50,7 @@ const TimeSlot: React.FC<OwnProps> = (props) => { |
|
|
|
return ( |
|
|
|
<IonPage> |
|
|
|
<header className={styles.header}> |
|
|
|
<IonIcon icon={chevronBack} /> |
|
|
|
<IonIcon icon={chevronBack} onClick={props.HideTimeSlot} /> |
|
|
|
<h4>Find a Slot</h4> |
|
|
|
</header> |
|
|
|
|
|
|
@@ -68,7 +69,7 @@ const TimeSlot: React.FC<OwnProps> = (props) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div onClick={(highlightedDate && highlightedTime !== "") ? () => props.getDate("test") : undefined} |
|
|
|
<div onClick={(highlightedDate && highlightedTime !== "") ? () => props.getDate() : undefined} |
|
|
|
className={styles.timeSlotButton + " " + (highlightedDate && highlightedTime !== "" ? styles.buttonActive : "")}> |
|
|
|
<IonButton shape="round" expand='block' >Confirm slot</IonButton> |
|
|
|
</div> |
|
|
|