From 098f196f56f5e903b36e1f9d35013e075a0b296b Mon Sep 17 00:00:00 2001 From: HyperionLegion Date: Wed, 11 Aug 2021 21:09:08 -0400 Subject: [PATCH] copy join link: --- .env | 4 ++-- src/components/Group/GroupInviteCode.tsx | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 9643b21..b05c9a4 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -REACT_APP_API_LOCAL=http://localhost:5000/ -REACT_APP_API_PROD=https://api.wheelshare.app/ +REACT_APP_API_PROD=http://localhost:5000/ +REACT_APP_API_LOCAL=https://api.wheelshare.app/ diff --git a/src/components/Group/GroupInviteCode.tsx b/src/components/Group/GroupInviteCode.tsx index fda0e3f..87969c5 100644 --- a/src/components/Group/GroupInviteCode.tsx +++ b/src/components/Group/GroupInviteCode.tsx @@ -65,6 +65,13 @@ export default function GroupInviteCode() { > Regenerate + {navigator.clipboard.writeText("https://www.wheelshare.app/join/"+group.joinCode)}} style={{ + backgroundColor: lightgrey, + margin: '0.5rem', + flex: 1, + }}> + Copy Link + )}