@@ -10,7 +10,8 @@ import Tab from '../../../common/tabs/tab';
1010import LocationTableReport from '../reports' ;
1111import '../../../sass/Dashboard.scss' ;
1212import './index.scss' ;
13- import { REACT_APP_CUSTOM_REQUEST_HEADER as headerToSend } from '../../../utils/globalSettings' ;
13+ import { REACT_APP_CUSTOM_REQUEST_HEADER as headerToSend } from '../../../utils/globalSettings' ;
14+ import { Typography } from '@mui/material' ;
1415
1516const AdminDashboard = ( ) => {
1617 const { auth } = useAuth ( ) ;
@@ -33,31 +34,23 @@ const AdminDashboard = () => {
3334 const [ processedCheckins , setCheckins ] = useState ( null ) ;
3435
3536 // Volunteers SignedIn By Event Type
36- const [
37- totalVolunteersByEventType ,
38- setVolunteersSignedInByEventType ,
39- ] = useState ( { } ) ;
40- const [
41- totalVolunteerHoursByEventType ,
42- setVolunteeredHoursByEventType ,
43- ] = useState ( { } ) ;
37+ const [ totalVolunteersByEventType , setVolunteersSignedInByEventType ] =
38+ useState ( { } ) ;
39+ const [ totalVolunteerHoursByEventType , setVolunteeredHoursByEventType ] =
40+ useState ( { } ) ;
4441 const [ totalVolunteerAvgHoursByEventType , setAvgHoursByEventType ] = useState (
4542 { }
4643 ) ;
4744
4845 // Volunteers SignedIn By HackNight Property
49- const [
50- totalVolunteersByHackNightProp ,
51- setVolunteersSignedInByHackNightProp ,
52- ] = useState ( { } ) ;
46+ const [ totalVolunteersByHackNightProp , setVolunteersSignedInByHackNightProp ] =
47+ useState ( { } ) ;
5348 const [
5449 totalVolunteerHoursByHackNightProp ,
5550 setVolunteeredHoursByHackNightProp ,
5651 ] = useState ( { } ) ;
57- const [
58- totalVolunteerAvgHoursByHackNightProp ,
59- setAvgHoursByHackNightProp ,
60- ] = useState ( { } ) ;
52+ const [ totalVolunteerAvgHoursByHackNightProp , setAvgHoursByHackNightProp ] =
53+ useState ( { } ) ;
6154
6255 // Volunteers To Chart
6356 const [ totalVolunteers , setVolunteersToChart ] = useState ( { } ) ;
@@ -380,23 +373,25 @@ const AdminDashboard = () => {
380373 return function cleanup ( ) {
381374 abortController . abort ( ) ;
382375 } ;
383- // eslint-disable-next-line react-hooks/exhaustive-deps
376+ // eslint-disable-next-line react-hooks/exhaustive-deps
384377 } , [ ] ) ;
385378
386379 return auth && auth . user ? (
387380 < div className = "flex-container" >
388381 < div className = "dashboard admin-dashboard-wrap" >
389382 < div className = "admin-header" >
390- < h1 > Stats by Location - Volunteer Hours</ h1 >
383+ < Typography variant = "h1" component = "h1" >
384+ Stats by Location - Volunteer Hours
385+ </ Typography >
391386 </ div >
392387
393388 { ! isLoading && nextEvent . length ? (
394- ! isCheckInReady &&
389+ ! isCheckInReady && (
395390 < div className = "event-header" > You have 1 upcoming event:</ div >
396- ) : (
397- < div className = "event-header" > Current event:</ div >
398391 )
399- }
392+ ) : (
393+ < div className = "event-header" > Current event:</ div >
394+ ) }
400395
401396 < div className = "admin-upcoming-event" >
402397 { isLoading ? (
0 commit comments