From 341cad05005f34e3d0cd8efa4b68174d1aa77565 Mon Sep 17 00:00:00 2001 From: Damilola Belllo Date: Mon, 2 Dec 2024 18:01:48 +0100 Subject: [PATCH 1/2] fix(client): disable input when user joins via an invite link Disable `credential group id` input when user joins a group via an invite link with an inviteCode. Also, disable `invite code` input when user joins a group via an invite link with a credentialGroupId #270 --- apps/client/src/pages/home.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/client/src/pages/home.tsx b/apps/client/src/pages/home.tsx index 2dadf86b..f253fd9d 100644 --- a/apps/client/src/pages/home.tsx +++ b/apps/client/src/pages/home.tsx @@ -200,6 +200,7 @@ export default function HomePage(): JSX.Element { onChange={(event) => setInviteCode(event.target.value) } + disabled={!!_searchParams.get("credentialGroupId")} /> @@ -213,6 +214,7 @@ export default function HomePage(): JSX.Element { onChange={(event) => setCredentialGroupId(event.target.value) } + disabled={!!_searchParams.get("inviteCode")} /> From fe2346e4f5342ad8bb779aeafece7319dcbbe4ff Mon Sep 17 00:00:00 2001 From: Damilola Belllo Date: Mon, 2 Dec 2024 19:03:46 +0100 Subject: [PATCH 2/2] fix(client): resolve style issues --- apps/client/src/pages/home.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/client/src/pages/home.tsx b/apps/client/src/pages/home.tsx index f253fd9d..82eab3f2 100644 --- a/apps/client/src/pages/home.tsx +++ b/apps/client/src/pages/home.tsx @@ -200,7 +200,9 @@ export default function HomePage(): JSX.Element { onChange={(event) => setInviteCode(event.target.value) } - disabled={!!_searchParams.get("credentialGroupId")} + disabled={ + !!_searchParams.get("credentialGroupId") + } />