We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37f5c72 commit 626c838Copy full SHA for 626c838
frontend/src/components/common/EventCard/index.tsx
@@ -88,10 +88,12 @@ export function EventCard({event}: EventCardProps) {
88
<Menu.Item onClick={() => navigate(`/manage/event/${event.id}`)}
89
leftSection={<IconSettings size={14}/>}
90
>{t`Manage event`}</Menu.Item>
91
- <Menu.Item onClick={() => navigate(`/manage/event/${event.id}/check-in`)}
92
- leftSection={<IconQrcode size={14}/>}
93
- >{t`Check-in`}</Menu.Item>
94
+ {(event.lifecycle_status === 'UPCOMING' || event.lifecycle_status === 'ONGOING') && (
+ <Menu.Item onClick={() => navigate(`/manage/event/${event.id}/check-in`)}
+ leftSection={<IconQrcode size={14}/>}
95
+ >{t`Check-in`}</Menu.Item>
96
+ )}
97
</Menu.Dropdown>
98
</Menu>
99
</div>
0 commit comments