Skip to content

Commit

Permalink
feat(auth): add credential provider icon and update email translation…
Browse files Browse the repository at this point in the history
… in login flow

Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Dec 23, 2024
1 parent f734e6c commit d9a2638
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/renderer/src/modules/auth/LoginModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const defaultProviders = {
}
const overrideProviderIconMap = {
apple: <i className="i-mgc-apple-cute-fi text-black dark:text-white" />,
credential: <i className="i-mingcute-mail-line text-black dark:text-white" />,
}
export const LoginModalContent = (props: LoginModalContentProps) => {
const modal = useCurrentModal()
Expand Down
6 changes: 4 additions & 2 deletions apps/server/client/modules/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ export function Login() {
}}
>
<i className={cn("mr-2 text-xl", authProvidersConfig[key]?.iconClassName)} />{" "}
{t("login.continueWith", { provider: provider.name })}
{t("login.continueWith", {
provider: provider.name,
})}
</Button>
))}
</div>
Expand Down Expand Up @@ -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") })}
</Button>
<Button
buttonClassName="!mt-3 text-base"
Expand Down
3 changes: 2 additions & 1 deletion locales/external/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@
"register.login": "Login",
"register.note": "Already have an account? <LoginLink />",
"register.password": "Password",
"register.submit": "Create account"
"register.submit": "Create account",
"words.email": "Email"
}

0 comments on commit d9a2638

Please sign in to comment.