Skip to content

Commit

Permalink
Add display for unpublished
Browse files Browse the repository at this point in the history
  • Loading branch information
JiashuHarryHuang committed May 13, 2024
1 parent c154655 commit 222b24e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/Event/Event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { BOOKEM_THEME } from '@/utils/constants';
import {
CheckCircleOutlined,
ExclamationCircleFilled,
InfoCircleOutlined,
} from '@ant-design/icons';

const { confirm } = Modal;
Expand Down Expand Up @@ -145,10 +146,14 @@ const Event = ({ pid }: { pid: string }) => {
{event.volunteers.length} / {event.maxSpot} spots filled
</SpotsFilled>
<Flex style={{ margin: '0 0 10px 50px' }} gap="4px 0" wrap="wrap">
{event.published && (
{event.published ? (
<Tag icon={<CheckCircleOutlined />} color="success">
published
</Tag>
) : (
<Tag icon={<InfoCircleOutlined />} color="processing">
unpublished
</Tag>
)}
</Flex>
<ButtonContainer>
Expand Down

0 comments on commit 222b24e

Please sign in to comment.