diff --git a/client/src/pages/Home.jsx b/client/src/pages/Home.jsx index 98b890a22..e7feb4e28 100644 --- a/client/src/pages/Home.jsx +++ b/client/src/pages/Home.jsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import CheckInButtons from '../components/presentational/CheckInButtons'; import CreateNewProfileButton from '../components/presentational/CreateNewProfileButton'; import { REACT_APP_CUSTOM_REQUEST_HEADER as headerToSend } from '../utils/globalSettings'; -import { CircularProgress, Box, Typography } from '@mui/material'; +import { CircularProgress, Box, Typography, Select, MenuItem, FormControl, InputLabel } from '@mui/material'; import '../sass/Home.scss'; @@ -25,12 +25,13 @@ const h4sx = { fontSize: {xs: '1.8rem'}, } + const Home = () => { const [events, setEvents] = useState(null); const [selectedEvent, setSelectedEvent] = useState(''); const handleEventChange = (e) => { - setSelectedEvent(e.currentTarget.value); + setSelectedEvent(e.target.value); }; // Fetching only events with checkInReady = true @@ -61,6 +62,8 @@ const Home = () => { ); } + + return ( @@ -70,39 +73,43 @@ const Home = () => { {events && events.length > 0 ? ( -
e.preventDefault()} + variant='standard' > - + - + -
+
):( diff --git a/client/src/sass/Home.scss b/client/src/sass/Home.scss index 147708055..29a01ca44 100644 --- a/client/src/sass/Home.scss +++ b/client/src/sass/Home.scss @@ -126,18 +126,18 @@ } p { - text-align: left; + text-align: center; font-weight: bold; - letter-spacing: .05em; + letter-spacing: 0.075em; } } } -// .radio-buttons { -// display: flex; -// justify-content: space-around; -// margin: 8px; -// } +.radio-buttons { + display: flex; + justify-content: space-around; + margin: 8px; +} .select-meeting-dropdown:-webkit-autofill, .select-meeting-dropdown:-webkit-autofill:hover,