From d9a26387c5a5715dee6512a1d2f2aad92bf0e0eb Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 23 Dec 2024 21:11:24 +0800 Subject: [PATCH] feat(auth): add credential provider icon and update email translation in login flow Signed-off-by: Innei --- apps/renderer/src/modules/auth/LoginModalContent.tsx | 1 + apps/server/client/modules/login/index.tsx | 6 ++++-- locales/external/en.json | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/renderer/src/modules/auth/LoginModalContent.tsx b/apps/renderer/src/modules/auth/LoginModalContent.tsx index 885cdc9d03..9cef7315b4 100644 --- a/apps/renderer/src/modules/auth/LoginModalContent.tsx +++ b/apps/renderer/src/modules/auth/LoginModalContent.tsx @@ -37,6 +37,7 @@ const defaultProviders = { } const overrideProviderIconMap = { apple: , + credential: , } export const LoginModalContent = (props: LoginModalContentProps) => { const modal = useCurrentModal() diff --git a/apps/server/client/modules/login/index.tsx b/apps/server/client/modules/login/index.tsx index 11a1b7d09b..bf7972774c 100644 --- a/apps/server/client/modules/login/index.tsx +++ b/apps/server/client/modules/login/index.tsx @@ -139,7 +139,9 @@ export function Login() { }} > {" "} - {t("login.continueWith", { provider: provider.name })} + {t("login.continueWith", { + provider: provider.name, + })} ))} @@ -284,7 +286,7 @@ function LoginWithPassword() { buttonClassName="text-base !mt-3" disabled={!isValid} > - {t("login.continueWith", { provider: "email" })} + {t("login.continueWith", { provider: t("words.email") })}