From 5725e4cbff123fbdfc8055ee852c80c67bf06ce5 Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Wed, 11 Aug 2021 21:28:53 -0400 Subject: [PATCH] show group code copy link always --- src/components/Group/GroupInviteCode.tsx | 71 +++++++++++++----------- 1 file changed, 40 insertions(+), 31 deletions(-) diff --git a/src/components/Group/GroupInviteCode.tsx b/src/components/Group/GroupInviteCode.tsx index 87969c5..250f9f9 100644 --- a/src/components/Group/GroupInviteCode.tsx +++ b/src/components/Group/GroupInviteCode.tsx @@ -43,37 +43,46 @@ export default function GroupInviteCode() { {' '} (click to show/hide) - {isAdmin && ( -
- - Reset - - - Regenerate - - {navigator.clipboard.writeText("https://www.wheelshare.app/join/"+group.joinCode)}} style={{ - backgroundColor: lightgrey, - margin: '0.5rem', - flex: 1, - }}> - Copy Link - -
- )} +
+ {isAdmin && ( + <> + + Reset + + + Regenerate + + + )} + { + navigator.clipboard.writeText( + 'https://www.wheelshare.app/join/' + group.joinCode + ); + }} + style={{ + backgroundColor: lightgrey, + margin: '0.5rem', + flex: 1, + }} + > + Copy Link + +
); } else {