@@ -2,33 +2,34 @@ import React from "react";
22import { ReactComponent as ClockIcon } from "../../svg/Icon_Clock.svg" ;
33import { ReactComponent as LocationIcon } from "../../svg/Icon_Location.svg" ;
44import { Link } from "react-router-dom" ;
5+ import { Box , Typography } from "@mui/material" ;
56
67import moment from "moment" ;
78
89const upcomingEvent = ( props ) => {
910 return props . nextEvent [ 0 ] ? (
10- < div className = "warning-event" >
11- < div className = "warning-event-headers" >
12- < p className = "event-name" > { props . nextEvent [ 0 ] . name } </ p >
13- < div className = "event-info-wrapper" >
11+ < Box className = "warning-event" >
12+ < Box className = "warning-event-headers" >
13+ < Typography className = "event-name" > { props . nextEvent [ 0 ] . name } </ Typography >
14+ < Box className = "event-info-wrapper" >
1415 < ClockIcon />
15- < p className = "event-info" >
16+ < Typography className = "event-info" sx = { { margin : '0px 0px 0px 12px' } } >
1617 { moment ( props . nextEvent [ 0 ] . date ) . format (
1718 "ddd, MMM D @ h:mm a"
1819 ) }
19- </ p >
20- </ div >
20+ </ Typography >
21+ </ Box >
2122 { props . nextEvent [ 0 ] . location . city !== "" &&
22- < div className = "event-info-wrapper" >
23+ < Box className = "event-info-wrapper" >
2324 < LocationIcon />
24- < p className = "event-info" >
25+ < Typography className = "event-info" sx = { { margin : '0px 0px 0px 12px' } } >
2526 { props . nextEvent [ 0 ] . location . city } ,{ " " }
2627 { props . nextEvent [ 0 ] . location . state }
27- </ p >
28- </ div >
28+ </ Typography >
29+ </ Box >
2930 }
30- </ div >
31- < div className = "warning-event-toggle" >
31+ </ Box >
32+ < Box className = "warning-event-toggle" >
3233 { props . nextEvent [ 0 ] && props . isCheckInReady === false ? (
3334 < Link
3435 to = { `/events/${ props . nextEvent [ 0 ] . _id } ` }
@@ -50,10 +51,10 @@ const upcomingEvent = (props) => {
5051 CLOSE CHECK-IN
5152 </ Link >
5253 ) }
53- </ div >
54- </ div >
54+ </ Box >
55+ </ Box >
5556 ) : (
56- < div > No events coming up!</ div >
57+ < Box > No events coming up!</ Box >
5758 ) ;
5859} ;
5960export default upcomingEvent ;
0 commit comments