Skip to content

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

🔥 Remove comments disabled note

Luke Vella67911e04b6d9
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 7fd427801..58bfbd693 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -148,7 +148,6 @@
"or": "Or",
"autoTimeZone": "Automatic Time Zone Conversion",
"autoTimeZoneHelp": "Enable this setting to automatically adjust event times to each participant's local time zone.",
- "commentsDisabled": "Comments have been disabled",
"allParticipants": "All Participants",
"noParticipantsDescription": "Click <b>Share</b> to invite participants",
"eventHostDescription": "You are the creator of this poll",
diff --git a/apps/web/src/components/discussion/discussion.tsx b/apps/web/src/components/discussion/discussion.tsx
index 16456de56..6ea01c3c5 100644
--- a/apps/web/src/components/discussion/discussion.tsx
+++ b/apps/web/src/components/discussion/discussion.tsx
@@ -15,15 +15,10 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from "@rallly/ui/dropdown-menu";
-import { Icon } from "@rallly/ui/icon";
import { Input } from "@rallly/ui/input";
import { toast } from "@rallly/ui/sonner";
import { Textarea } from "@rallly/ui/textarea";
-import {
- MessageSquareOffIcon,
- MoreHorizontalIcon,
- TrashIcon,
-} from "lucide-react";
+import { MoreHorizontalIcon, TrashIcon } from "lucide-react";
import * as React from "react";
import { Controller, useForm } from "react-hook-form";
import { OptimizedAvatarImage } from "@/components/optimized-avatar-image";
@@ -275,17 +270,7 @@ function DiscussionInner() {
export default function Discussion() {
const poll = usePoll();
if (poll.disableComments) {
- return (
- <p className="rounded-lg bg-muted p-4 text-center text-muted-foreground text-sm">
- <Icon>
- <MessageSquareOffIcon className="mr-2 inline-block" />
- </Icon>
- <Trans
- i18nKey="commentsDisabled"
- defaults="Comments have been disabled"
- />
- </p>
- );
+ return null;
}
return <DiscussionInner />;
}