fix: eslint issues.

This commit is contained in:
Ruben Talstra 2025-02-12 20:48:00 +01:00
parent 091d4f3192
commit 1ab5bc425d
Failed to extract signature
3 changed files with 6 additions and 12 deletions

View file

@ -92,7 +92,6 @@ function AuthLayout({
{header}
</h1>
)}
{/* Conditionally render the default content or the PasskeyAuth component */}
{showPasskey ? (
<PasskeyAuth mode={mode} onBack={() => setShowPasskey(false)} />
) : (

View file

@ -124,21 +124,16 @@ function SocialLoginRender({ startupConfig, mode, onPasskeyClick }: SocialLoginR
{startupConfig.passkeyLoginEnabled && (
<div className="mt-2 flex gap-x-2">
<a
<button
aria-label={passkeyLabel}
className="flex w-full items-center space-x-3 rounded-2xl border border-border-light bg-surface-primary px-5 py-3 text-text-primary transition-colors duration-200 hover:bg-surface-tertiary"
data-testid='passkey'
href=''
onClick={(e) => {
e.preventDefault();
if (onPasskeyClick) {
onPasskeyClick();
}
}}
data-testid="passkey"
type="button"
onClick={onPasskeyClick}
>
<PasskeyIcon />
<p>{passkeyLabel}</p>
</a>
</button>
</div>
)}
</div>