@@ -83,7 +83,7 @@ export default function MyEventsPage() {
8383 today : { bg : '#fff3e0' , color : '#f57c00' } ,
8484 past : { bg : '#f3e5f5' , color : '#7b1fa2' } ,
8585 } ;
86- const theme = colors [ status ] || colors . upcoming ;
86+ const theme = colors [ status ] ?? { bg : '#e3f2fd' , color : '#1976d2' } ;
8787 return {
8888 padding : '6px 12px' ,
8989 background : theme . bg ,
@@ -126,7 +126,7 @@ export default function MyEventsPage() {
126126 < div style = { containerStyle } >
127127 < div style = { headerStyle } >
128128 < h1 style = { titleStyle } > Registered Events</ h1 >
129- < button style = { buttonStyle ( 'secondary' ) } onClick = { ( ) => navigate ( home , { } ) } >
129+ < button style = { buttonStyle ( 'secondary' ) } onClick = { ( ) => navigate ( home ) } >
130130 ← Home
131131 </ button >
132132 </ div >
@@ -152,7 +152,7 @@ export default function MyEventsPage() {
152152 : `${ registeredEvents . length } event${ registeredEvents . length !== 1 ? 's' : '' } with registrations` }
153153 </ p >
154154 </ div >
155- < button style = { buttonStyle ( 'secondary' ) } onClick = { ( ) => navigate ( home , { } ) } >
155+ < button style = { buttonStyle ( 'secondary' ) } onClick = { ( ) => navigate ( home ) } >
156156 ← Home
157157 </ button >
158158 </ div >
@@ -166,7 +166,7 @@ export default function MyEventsPage() {
166166 < p style = { { fontSize : '18px' , marginBottom : '16px' } } >
167167 No events currently have registrations
168168 </ p >
169- < button style = { buttonStyle ( 'primary' ) } onClick = { ( ) => navigate ( home , { } ) } >
169+ < button style = { buttonStyle ( 'primary' ) } onClick = { ( ) => navigate ( home ) } >
170170 Browse Events
171171 </ button >
172172 </ div >
0 commit comments