Skip to content

Commit

Permalink
chore: show last-used indicator only on social buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoern-m committed Nov 26, 2024
1 parent 08024e7 commit e794064
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 1 addition & 9 deletions frontend/elements/src/pages/LoginInitPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,7 @@ const LoginInitPage = (props: Props) => {
placeholder={t("labels.emailOrUsername")}
/>
)}
<Button
uiAction={"email-submit"}
showLastUsed={["password", "passcode"].includes(
lastLogin?.login_method,
)}
>
{t("labels.continue")}
</Button>
<Button uiAction={"email-submit"}>{t("labels.continue")}</Button>
</Form>
<Divider hidden={!showDivider}>{t("labels.or")}</Divider>
</Fragment>
Expand All @@ -248,7 +241,6 @@ const LoginInitPage = (props: Props) => {
}
disabled={!isWebAuthnSupported}
icon={"passkey"}
showLastUsed={lastLogin?.login_method == "passkey"}
>
{t("labels.signInPasskey")}
</Button>
Expand Down
2 changes: 0 additions & 2 deletions frontend/elements/src/pages/LoginMethodChooser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ const LoginMethodChooserPage = (props: Props) => {
secondary={true}
uiAction={"passcode-submit"}
icon={"mail"}
showLastUsed={lastLogin?.login_method == "passcode"}
>
{t("labels.passcode")}
</Button>
Expand All @@ -81,7 +80,6 @@ const LoginMethodChooserPage = (props: Props) => {
secondary={true}
uiAction={"password-submit"}
icon={"password"}
showLastUsed={lastLogin?.login_method == "password"}
>
{t("labels.password")}
</Button>
Expand Down

0 comments on commit e794064

Please sign in to comment.