Skip to content

Commit

Permalink
fix: eslint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
rubentalstra committed Feb 12, 2025
1 parent 091d4f3 commit 1ab5bc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api/server/routes/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ router.get('/', async function (req, res) {
!!process.env.APPLE_TEAM_ID &&
!!process.env.APPLE_KEY_ID &&
!!process.env.APPLE_PRIVATE_KEY_PATH,
passkeyLoginEnabled : !!process.env.PASSKEY_ENABLED && !!process.env.RP_ID,
passkeyLoginEnabled: !!process.env.PASSKEY_ENABLED && !!process.env.RP_ID,
openidLoginEnabled:
!!process.env.OPENID_CLIENT_ID &&
!!process.env.OPENID_CLIENT_SECRET &&
Expand Down
1 change: 0 additions & 1 deletion client/src/components/Auth/AuthLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ function AuthLayout({
{header}
</h1>
)}
{/* Conditionally render the default content or the PasskeyAuth component */}
{showPasskey ? (
<PasskeyAuth mode={mode} onBack={() => setShowPasskey(false)} />
) : (
Expand Down
15 changes: 5 additions & 10 deletions client/src/components/Auth/SocialLoginRender.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 1ab5bc4

Please sign in to comment.