fix: Hide Info field in event card when description is empty
This commit is contained in:
@@ -112,9 +112,11 @@ const EventList: React.FC = () => {
|
|||||||
size="small"
|
size="small"
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Typography variant="body2" color="text.secondary">
|
{event.description && (
|
||||||
<strong>Info:</strong> {event.description}
|
<Typography variant="body2" color="text.secondary">
|
||||||
</Typography>
|
<strong>Info:</strong> {event.description}
|
||||||
|
</Typography>
|
||||||
|
)}
|
||||||
<Typography variant="body2" color="text.secondary">
|
<Typography variant="body2" color="text.secondary">
|
||||||
<strong>Date:</strong> {new Date(event.date).toLocaleString()}
|
<strong>Date:</strong> {new Date(event.date).toLocaleString()}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user