diff --git a/src/components/Dashboard/HomePage/HomePage.tsx b/src/components/Dashboard/HomePage/HomePage.tsx index f472faaa7462563dcbbe01f4af7492996a383fea..94f1eb7c9ed64465e724d768f8aa600096bc90f4 100644 --- a/src/components/Dashboard/HomePage/HomePage.tsx +++ b/src/components/Dashboard/HomePage/HomePage.tsx @@ -109,7 +109,7 @@ export const HomePage: FC = () => { <Grid item container style={{ paddingTop: '20px' }}> <Grid item xs={1} lg={2} /> <Grid item xs={10} lg={8}> - <Reservation /> + <Reservation departure="" destination="" time="" date="" /> </Grid> <Grid item xs={1} lg={2} /> </Grid> diff --git a/src/components/Dashboard/ReservationPage/ReservationPage.tsx b/src/components/Dashboard/ReservationPage/ReservationPage.tsx index a1672f155d13655f89eda368246cdad5d29f34fe..862eb8e09f1666b4a412ec375fa4c496779ad35a 100644 --- a/src/components/Dashboard/ReservationPage/ReservationPage.tsx +++ b/src/components/Dashboard/ReservationPage/ReservationPage.tsx @@ -21,6 +21,7 @@ import Fab from '@material-ui/core/Fab'; import { NavBar } from 'components/Dashboard/HomePage/NavBar'; import { Reservation } from 'components/Dashboard/ReservationPage/Reservation/Reservation'; +import { useReservations } from 'hooks/useReservations'; let themeResp = createMuiTheme(); themeResp = responsiveFontSizes(themeResp); @@ -86,6 +87,8 @@ export const ReservationPage: FC = () => { const [open, setOpen] = React.useState(false); + const reservation = useReservations(); + const handleClickOpen = (): void => { setOpen(true); }; @@ -210,29 +213,7 @@ export const ReservationPage: FC = () => { <Grid item xs={2} /> </Grid> - <Grid item container style={{ paddingTop: '20px' }}> - <Grid item xs={1} lg={2} /> - <Grid item xs={10} lg={8}> - <Reservation /> - </Grid> - <Grid item xs={1} lg={2} /> - </Grid> - - <Grid item container style={{ paddingTop: '20px' }}> - <Grid item xs={1} lg={2} /> - <Grid item xs={10} lg={8}> - <Reservation /> - </Grid> - <Grid item xs={1} lg={2} /> - </Grid> - - <Grid item container style={{ paddingTop: '20px' }}> - <Grid item xs={1} lg={2} /> - <Grid item xs={10} lg={8}> - <Reservation /> - </Grid> - <Grid item xs={1} lg={2} /> - </Grid> + <Reservation departure="" destination="" time="" date="" /> <Grid item container className={classes.paddingTop}> <Grid item xs={2} /> @@ -244,13 +225,7 @@ export const ReservationPage: FC = () => { <Grid item xs={2} /> </Grid> - <Grid item container style={{ paddingTop: '20px' }}> - <Grid item xs={1} lg={2} /> - <Grid item xs={10} lg={8}> - <Reservation /> - </Grid> - <Grid item xs={1} lg={2} /> - </Grid> + <Reservation departure="" destination="" time="" date="" /> </Grid> </div> );