Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Allow adding multiple participants (#220)
Luke Vella68ef2e3cec3c
diff --git a/src/components/poll/desktop-poll.tsx b/src/components/poll/desktop-poll.tsxindex ca6e851ce..9834d879e 100644--- a/src/components/poll/desktop-poll.tsx+++ b/src/components/poll/desktop-poll.tsx@@ -27,8 +27,7 @@ const minSidebarWidth = 200;const Poll: React.VoidFunctionComponent = () => {const { t } = useTranslation("app");- const { poll, options, userAlreadyVoted, targetTimeZone, setTargetTimeZone } =- usePoll();+ const { poll, options, targetTimeZone, setTargetTimeZone } = usePoll();const { participants } = useParticipants();@@ -66,7 +65,7 @@ const Poll: React.VoidFunctionComponent = () => {const maxScrollPosition =columnWidth * options.length - columnWidth * numberOfVisibleColumns;- const shouldShowNewParticipantForm = !userAlreadyVoted && !poll.closed;+ const shouldShowNewParticipantForm = !poll.closed;const pollWidth =sidebarWidth + options.length * columnWidth + actionColumnWidth;diff --git a/src/components/poll/mobile-poll.tsx b/src/components/poll/mobile-poll.tsxindex 45a2fe3a0..f9ad63b40 100644--- a/src/components/poll/mobile-poll.tsx+++ b/src/components/poll/mobile-poll.tsx@@ -255,7 +255,7 @@ const MobilePoll: React.VoidFunctionComponent = () => {}}/></div>- ) : !userAlreadyVoted ? (+ ) : (<Buttontype="primary"icon={<PlusCircle />}@@ -270,7 +270,7 @@ const MobilePoll: React.VoidFunctionComponent = () => {>New</Button>- ) : null}+ )}</div>{timeZone ? (<TimeZonePicker