Skip to content

Commit

Permalink
feat: add empty state to EventCardList
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhojang6 committed Apr 29, 2024
1 parent ed04f3e commit d7e0cf7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@
white-space: pre-wrap;
}
}

@include utils.responsive('md', 'down') {
.mdx-event-card__thumbnail {
height: unset;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import './EventCardList.scss'
import { Button } from '@acid-info/lsd-react'
import { Button, Typography } from '@acid-info/lsd-react'
import { Box, EventCard, EventCardProps, Grid } from '..'
import { TabItem, Tabs } from '@acid-info/lsd-react'

Expand Down Expand Up @@ -63,6 +63,9 @@ export const EventCardList: React.FC<EventCardListProps> = ({
<EventCard {...event} />
</Grid.Item>
))}
{data.length === 0 ? (
<Typography>No events found.</Typography>
) : null}
</Grid>
</Box>
{showMore && (
Expand Down

0 comments on commit d7e0cf7

Please sign in to comment.