Merge pull request #18 from Ryderjj89/dev

Rearranging event details & more width for view/manage pages
This commit is contained in:
Joshua Ryder
2025-06-04 18:45:28 -04:00
committed by GitHub
2 changed files with 19 additions and 19 deletions

View File

@@ -729,7 +729,7 @@ const EventAdmin: React.FC = () => {
if (loading) { if (loading) {
return ( return (
<Container maxWidth="lg"> <Container maxWidth="xl">
<Typography>Loading...</Typography> <Typography>Loading...</Typography>
</Container> </Container>
); );
@@ -737,7 +737,7 @@ const EventAdmin: React.FC = () => {
if (error || !event) { if (error || !event) {
return ( return (
<Container maxWidth="lg"> <Container maxWidth="xl">
<Typography color="error">{error || 'Event not found'}</Typography> <Typography color="error">{error || 'Event not found'}</Typography>
</Container> </Container>
); );
@@ -763,7 +763,7 @@ const EventAdmin: React.FC = () => {
}} }}
> >
<Box sx={{ py: 4 }}> <Box sx={{ py: 4 }}>
<Container maxWidth="lg"> <Container maxWidth="xl">
<Paper elevation={3} sx={{ p: { xs: 2, sm: 4 }, mt: 4 }}> <Paper elevation={3} sx={{ p: { xs: 2, sm: 4 }, mt: 4 }}>
<Box sx={{ mb: 4 }}> <Box sx={{ mb: 4 }}>
<Typography variant="h4" component="h2" color="primary" gutterBottom> <Typography variant="h4" component="h2" color="primary" gutterBottom>
@@ -827,10 +827,10 @@ const EventAdmin: React.FC = () => {
<strong>Info:</strong> {event.description || 'None'} <strong>Info:</strong> {event.description || 'None'}
</Typography> </Typography>
<Typography variant="subtitle1" gutterBottom> <Typography variant="subtitle1" gutterBottom>
<strong>Location:</strong> {event.location} <strong>Date:</strong> {new Date(event.date).toLocaleString()}
</Typography> </Typography>
<Typography variant="subtitle1" gutterBottom> <Typography variant="subtitle1" gutterBottom>
<strong>Date:</strong> {new Date(event.date).toLocaleString()} <strong>Location:</strong> {event.location}
</Typography> </Typography>
{event.rsvp_cutoff_date && ( {event.rsvp_cutoff_date && (
<Typography variant="subtitle1" gutterBottom> <Typography variant="subtitle1" gutterBottom>

View File

@@ -126,7 +126,7 @@ const EventView: React.FC = () => {
if (loading) { if (loading) {
return ( return (
<Container maxWidth="lg"> <Container maxWidth="xl">
<Typography>Loading...</Typography> <Typography>Loading...</Typography>
</Container> </Container>
); );
@@ -134,7 +134,7 @@ const EventView: React.FC = () => {
if (error || !event) { if (error || !event) {
return ( return (
<Container maxWidth="lg"> <Container maxWidth="xl">
<Typography color="error">{error || 'Event not found'}</Typography> <Typography color="error">{error || 'Event not found'}</Typography>
</Container> </Container>
); );
@@ -160,7 +160,7 @@ const EventView: React.FC = () => {
}} }}
> >
<Box sx={{ py: 4 }}> <Box sx={{ py: 4 }}>
<Container maxWidth="lg"> <Container maxWidth="xl">
<Paper elevation={3} sx={{ p: { xs: 2, sm: 4 }, mt: 4 }}> <Paper elevation={3} sx={{ p: { xs: 2, sm: 4 }, mt: 4 }}>
<Box sx={{ mb: 4 }}> <Box sx={{ mb: 4 }}>
<Typography variant="h4" component="h2" color="primary" gutterBottom> <Typography variant="h4" component="h2" color="primary" gutterBottom>
@@ -190,10 +190,10 @@ const EventView: React.FC = () => {
<strong>Info:</strong> {event.description || 'None'} <strong>Info:</strong> {event.description || 'None'}
</Typography> </Typography>
<Typography variant="subtitle1" gutterBottom> <Typography variant="subtitle1" gutterBottom>
<strong>Location:</strong> {event.location} <strong>Date:</strong> {new Date(event.date).toLocaleString()}
</Typography> </Typography>
<Typography variant="subtitle1" gutterBottom> <Typography variant="subtitle1" gutterBottom>
<strong>Date:</strong> {new Date(event.date).toLocaleString()} <strong>Location:</strong> {event.location}
</Typography> </Typography>
{event.rsvp_cutoff_date && ( {event.rsvp_cutoff_date && (
<Typography variant="subtitle1" gutterBottom> <Typography variant="subtitle1" gutterBottom>