mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
fix: eslint issues.
This commit is contained in:
parent
091d4f3192
commit
1ab5bc425d
3 changed files with 6 additions and 12 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
|
|
@ -92,7 +92,6 @@ function AuthLayout({
|
|||
{header}
|
||||
</h1>
|
||||
)}
|
||||
{/* Conditionally render the default content or the PasskeyAuth component */}
|
||||
{showPasskey ? (
|
||||
<PasskeyAuth mode={mode} onBack={() => setShowPasskey(false)} />
|
||||
) : (
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue