🐛 Small UI fixes
Simon Mulquin simon@octree.ch
Fri, 08 Mar 2024 10:02:26 +0000
2 files changed,
6 insertions(+),
3 deletions(-)
M
frontend/containers/DashboardEvents/EventCard.tsx
→
frontend/containers/DashboardEvents/EventCard.tsx
@@ -56,7 +56,7 @@ >
{t('event.fields.date')} </Typography> <Typography variant="body1" sx={{mb: 1}}> - {moment(event.attributes.date).format('DD/MM/YYYY') || + {event.attributes.date && moment(event.attributes.date).format('DD/MM/YYYY') || t('event.fields.empty')} </Typography> <Typography
M
frontend/containers/Travel/Header.tsx
→
frontend/containers/Travel/Header.tsx
@@ -28,7 +28,8 @@ userPermissions: {canEditTravel},
} = usePermissions(); const {setFocusOnTravel, focusedTravel} = useMapStore(); const {userId} = useProfile(); - const isUserTripCreator = userId && userId === travel.attributes.user?.data?.id; + const isUserTripCreator = + userId && userId === travel.attributes.user?.data?.id; const passengersCount = travel?.attributes.passengers?.data.length || 0; const availableSeats = travel?.attributes.seats - passengersCount || 0;@@ -73,7 +74,9 @@ )}
<Typography variant="subtitle1"> {travel.attributes.vehicleName} {isUserTripCreator && ( - <Chip sx={{mx: 1}} label={t`generic.me`} variant="outlined" /> + <Typography component="span"> + <Chip sx={{mx: 1}} label={t`generic.me`} variant="outlined" /> + </Typography> )} </Typography>