From 5a4ff95ac87e0dde2ffcc4199e41a3ab2cec0f82 Mon Sep 17 00:00:00 2001 From: Sam Piper Date: Tue, 16 Apr 2024 00:20:24 +0100 Subject: [PATCH] fix: any light moders? --- .../components/SignedInUserCard/index.tsx | 18 ++++++++++-------- .../subcomponents/SignInReasonDisplay.tsx | 6 +++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/forge/src/components/signin/dashboard/components/SignedInUserCard/index.tsx b/apps/forge/src/components/signin/dashboard/components/SignedInUserCard/index.tsx index 668262d..e86090e 100644 --- a/apps/forge/src/components/signin/dashboard/components/SignedInUserCard/index.tsx +++ b/apps/forge/src/components/signin/dashboard/components/SignedInUserCard/index.tsx @@ -66,7 +66,7 @@ export const SignedInUserCard: React.FunctionComponent = ({ } }; - const shouldDisplayReason = !(reason?.name === REP_ON_SHIFT || reason?.name === REP_OFF_SHIFT); + const shouldDisplayReason = true; return ( = ({
-

{user.display_name}

+

+ {user.display_name} +

{user.teams?.map((team) => ( - - - {team.name} + + + {team.name} ))}
@@ -98,9 +100,9 @@ export const SignedInUserCard: React.FunctionComponent = ({ - diff --git a/apps/forge/src/components/signin/dashboard/components/SignedInUserCard/subcomponents/SignInReasonDisplay.tsx b/apps/forge/src/components/signin/dashboard/components/SignedInUserCard/subcomponents/SignInReasonDisplay.tsx index caa89be..098b431 100644 --- a/apps/forge/src/components/signin/dashboard/components/SignedInUserCard/subcomponents/SignInReasonDisplay.tsx +++ b/apps/forge/src/components/signin/dashboard/components/SignedInUserCard/subcomponents/SignInReasonDisplay.tsx @@ -8,13 +8,13 @@ interface SignInReasonDisplayProps { export const SignInReasonDisplay: React.FC = ({ tools, reason }) => { return ( <> -
+
- Sign In Reason: + Sign In Reason: {reason.name}
- Tools: + Tools: {tools.join(", ")}