From 81e6a5aaa60d00ea488f8481aac518a08ddd9708 Mon Sep 17 00:00:00 2001 From: gibbyb Date: Fri, 20 Mar 2026 13:50:02 -0500 Subject: [PATCH] Add that thing --- .../src/components/layout/auth/profile/user-info.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/next/src/components/layout/auth/profile/user-info.tsx b/apps/next/src/components/layout/auth/profile/user-info.tsx index f76550c..d70c8ce 100644 --- a/apps/next/src/components/layout/auth/profile/user-info.tsx +++ b/apps/next/src/components/layout/auth/profile/user-info.tsx @@ -51,6 +51,10 @@ export const UserInfoForm = ({ }: UserInfoFormProps) => { const user = usePreloadedQuery(preloadedUser); const userProvider = usePreloadedQuery(preloadedProvider); + const providerMap: Record = { + unknown: 'Provider', + authentik: 'Gib\'s Auth' + }; const [loading, setLoading] = useState(false); const updateUser = useMutation(api.auth.updateUser); @@ -137,16 +141,16 @@ export const UserInfoForm = ({ {...field} type='email' placeholder='john@example.com' - disabled={userProvider !== 'email'} + disabled={userProvider !== 'password'} /> - {userProvider === 'email' ? ( + {userProvider === 'password' ? ( Your email address for account notifications ) : ( - Email is managed through your {userProvider} account + Email is managed through your {providerMap[userProvider ?? 'unknown']} account )} @@ -164,3 +168,4 @@ export const UserInfoForm = ({ ); }; +