diff --git a/web/pages/group/[...slugs]/index.tsx b/web/pages/group/[...slugs]/index.tsx index c6485a0e..f95cf399 100644 --- a/web/pages/group/[...slugs]/index.tsx +++ b/web/pages/group/[...slugs]/index.tsx @@ -52,6 +52,8 @@ import { useTipTxns } from 'web/hooks/use-tip-txns' import { JoinOrLeaveGroupButton } from 'web/components/groups/groups-button' import { searchInAny } from 'common/util/parse' import { useWindowSize } from 'web/hooks/use-window-size' +import { CopyLinkButton } from 'web/components/copy-link-button' +import { ENV_CONFIG } from 'common/envs/constants' export const getStaticProps = fromPropz(getStaticPropz) export async function getStaticPropz(props: { params: { slugs: string[] } }) { @@ -328,6 +330,11 @@ function GroupOverview(props: { }) } + const postFix = user ? '?referrer=' + user.username : '' + const shareUrl = `https://${ENV_CONFIG.domain}${groupPath( + group.slug + )}${postFix}` + return ( <> @@ -372,21 +379,26 @@ function GroupOverview(props: { )} + {anyoneCanJoin && user && ( - - Share - - - Invite a friend and get M${REFERRAL_AMOUNT} if they sign up! - - - + +
Invite
+
+ Invite a friend to this group and get M${REFERRAL_AMOUNT} if they + sign up! +
+ + + )} + +
Members