diff --git a/web/invite-links/view-invite-link-modal.react.js b/web/invite-links/view-invite-link-modal.react.js --- a/web/invite-links/view-invite-link-modal.react.js +++ b/web/invite-links/view-invite-link-modal.react.js @@ -25,6 +25,11 @@ const resolvedThreadInfo = useResolvedThreadInfo(threadInfo); const { popModal } = useModalContext(); + const url = `https://comm.app/invite/${inviteLink.name}`; + const copyLink = React.useCallback(() => { + navigator.clipboard.writeText(url); + }, [url]); + return (
Public link
-
- {`https://comm.app/invite/${inviteLink.name}`} -
-