Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Show short url in invite dialog (#995)
Luke Vella040f223d002c
diff --git a/apps/web/src/components/invite-dialog.tsx b/apps/web/src/components/invite-dialog.tsxindex 4c8175f30..fcac842df 100644--- a/apps/web/src/components/invite-dialog.tsx+++ b/apps/web/src/components/invite-dialog.tsx@@ -20,6 +20,7 @@ export function CopyInviteLinkButton() {const [didCopy, setDidCopy] = React.useState(false);const [state, copyToClipboard] = useCopyToClipboard();const poll = usePoll();+ const inviteLinkWithoutProtocol = poll.inviteLink.replace(/^https?:\/\//, "");React.useEffect(() => {if (state.error) {@@ -41,7 +42,7 @@ export function CopyInviteLinkButton() {{didCopy ? (<Trans i18nKey="copied" />) : (- <span className="min-w-0 truncate">{`${window.location.hostname}/invite/${poll.id}`}</span>+ <span className="min-w-0 truncate">{inviteLinkWithoutProtocol}</span>)}</Button>);