@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
22import CheckInButtons from '../components/presentational/CheckInButtons' ;
33import CreateNewProfileButton from '../components/presentational/CreateNewProfileButton' ;
44import { REACT_APP_CUSTOM_REQUEST_HEADER as headerToSend } from '../utils/globalSettings' ;
5- import { CircularProgress , Box , Typography , Select , MenuItem , FormControl } from '@mui/material' ;
5+ import { CircularProgress , Box , Typography , Select , MenuItem , FormControl , InputLabel } from '@mui/material' ;
66
77import '../sass/Home.scss' ;
88
@@ -25,20 +25,6 @@ const h4sx = {
2525 fontSize : { xs : '1.8rem' } ,
2626}
2727
28- // CSS for MUI label
29- const labelsx = {
30- fontFamily : 'aliseoregular' ,
31- fontSize : 18 ,
32- }
33-
34- // CSS for MUI MenuItem
35- const menuItemSx = {
36- width : '100%' ,
37- fontSize : 18 ,
38- color : 'rgb(250, 17, 79)' ,
39- backgroundColor : 'inhert' ,
40- }
41-
4228
4329const Home = ( ) => {
4430 const [ events , setEvents ] = useState ( null ) ;
@@ -95,12 +81,12 @@ const Home = () => {
9581 >
9682 < Box className = "form-row" >
9783 < Box className = "form-input-select" >
98- < Typography sx = { labelsx } >
84+ < InputLabel id = 'select-meeting-label' >
9985 Select a meeting to check-in:
100- </ Typography >
86+ </ InputLabel >
10187 < Box className = "radio-buttons" >
10288 < Select
103- labelId = 'select-label'
89+ labelId = 'select-meeting- label'
10490 className = "select-meeting-dropdown"
10591 value = { selectedEvent ? selectedEvent : "--SELECT ONE--" }
10692 renderValue = { ( selected ) => (
@@ -112,8 +98,8 @@ const Home = () => {
11298 >
11399 { events . map ( ( event ) => {
114100 return (
115- < MenuItem key = { event . _id || 0 } value = { event . project ?. name + ' - ' + event . name } sx = { menuItemSx } >
116- < Typography sx = { menuItemSx } >
101+ < MenuItem key = { event . _id || 0 } value = { event . project ?. name + ' - ' + event . name } >
102+ < Typography >
117103 { event ?. project ?. name + ' - ' + event . name }
118104 </ Typography >
119105 </ MenuItem >
0 commit comments