Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Show unconfirmed badge for unconfirmed events on public event page (#2557)

Luke Vellabe5517e39fab
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 35f831315..175184253 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -261,6 +261,7 @@
"events": "Events",
"eventStatusCanceled": "Canceled",
"eventStatusPast": "Past",
+ "eventStatusUnconfirmed": "Unconfirmed",
"eventStatusUpcoming": "Upcoming",
"eventTypeActionsLabel": "Event type actions",
"eventTypeDescriptionPlaceholder": "What is this event about?",
diff --git a/apps/web/src/app/[locale]/e/[id]/components/event-header.tsx b/apps/web/src/app/[locale]/e/[id]/components/event-header.tsx
index 21ed50432..08284b551 100644
--- a/apps/web/src/app/[locale]/e/[id]/components/event-header.tsx
+++ b/apps/web/src/app/[locale]/e/[id]/components/event-header.tsx
@@ -61,6 +61,13 @@ export function EventStatus({
</Badge>
);
}
+ if (status === "unconfirmed") {
+ return (
+ <Badge variant="default">
+ <Trans i18nKey="eventStatusUnconfirmed" defaults="Unconfirmed" />
+ </Badge>
+ );
+ }
if (hasEnded) {
return (
<Badge variant="default">