all repos — caroster @ 47cfddf44c0e3ba91db7ce94b80ec360dcf3348d

[Octree] Group carpool to your event https://caroster.io

🐛 Small UI fixes
Simon Mulquin simon@octree.ch
Fri, 08 Mar 2024 10:02:26 +0000
commit

47cfddf44c0e3ba91db7ce94b80ec360dcf3348d

parent

a440f7c732fd067d2cfa68ac51df9e0369252402

2 files changed, 6 insertions(+), 3 deletions(-)

jump to
M frontend/containers/DashboardEvents/EventCard.tsxfrontend/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.tsxfrontend/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>