@@ -15,6 +15,7 @@ import Banner from "./Banner";
1515import { isFuture } from "date-fns" ;
1616import { TitleWithDivider } from "./EventPage" ;
1717import useAuthenticatedAxios from "../Utilities/useAuthenticatedAxios.js" ;
18+ import "./EventList.css" ;
1819import { format } from "date-fns" ;
1920
2021function TabPanel ( props ) {
@@ -159,7 +160,7 @@ function EventList(props) {
159160 } ,
160161 {
161162 label : "Cancel" ,
162- onClick : ( ) => { } ,
163+ onClick : ( ) => { } ,
163164 } ,
164165 ] ,
165166 } ) ;
@@ -177,9 +178,9 @@ function EventList(props) {
177178 try {
178179 const url = ! isUserRegistered
179180 ? process . env . REACT_APP_API +
180- `/events/register?eid=${ eventId } &uid=${ props . userID } `
181+ `/events/register?eid=${ eventId } &uid=${ props . userID } `
181182 : process . env . REACT_APP_API +
182- `/events/unregister?eid=${ eventId } &uid=${ props . userID } ` ;
183+ `/events/unregister?eid=${ eventId } &uid=${ props . userID } ` ;
183184 const response = await authenticatedAxios . post ( url ) ;
184185 if ( response . status === 200 ) {
185186 const isRegisteredTemp = {
@@ -278,7 +279,7 @@ function EventList(props) {
278279 </ Tabs >
279280 </ Grid >
280281 </ Grid >
281-
282+
282283 < Grid item >
283284 { years . map ( ( year , index ) => (
284285 < TabPanel key = { year } value = { tabValue } index = { index } >
0 commit comments