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} {header}
</h1> </h1>
)} )}
{/* Conditionally render the default content or the PasskeyAuth component */}
{showPasskey ? ( {showPasskey ? (
<PasskeyAuth mode={mode} onBack={() => setShowPasskey(false)} /> <PasskeyAuth mode={mode} onBack={() => setShowPasskey(false)} />
) : ( ) : (

View file

@ -124,21 +124,16 @@ function SocialLoginRender({ startupConfig, mode, onPasskeyClick }: SocialLoginR
{startupConfig.passkeyLoginEnabled && ( {startupConfig.passkeyLoginEnabled && (
<div className="mt-2 flex gap-x-2"> <div className="mt-2 flex gap-x-2">
<a <button
aria-label={passkeyLabel} 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" 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' data-testid="passkey"
href='' type="button"
onClick={(e) => { onClick={onPasskeyClick}
e.preventDefault();
if (onPasskeyClick) {
onPasskeyClick();
}
}}
> >
<PasskeyIcon /> <PasskeyIcon />
<p>{passkeyLabel}</p> <p>{passkeyLabel}</p>
</a> </button>
</div> </div>
)} )}
</div> </div>