Fix warning about missing key for children (#1987)

This commit is contained in:
ekzyis 2025-03-18 17:48:13 -05:00 committed by GitHub
parent e31f8e9c69
commit 964cdc1d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,6 +112,7 @@ export default function Login ({ providers, callbackUrl, multiAuth, error, text,
default: default:
return ( return (
<OverlayTrigger <OverlayTrigger
key={provider.id}
placement='bottom' placement='bottom'
overlay={multiAuth ? <Tooltip>not available for account switching yet</Tooltip> : <></>} overlay={multiAuth ? <Tooltip>not available for account switching yet</Tooltip> : <></>}
trigger={['hover', 'focus']} trigger={['hover', 'focus']}
@ -119,7 +120,6 @@ export default function Login ({ providers, callbackUrl, multiAuth, error, text,
<div className='w-100'> <div className='w-100'>
<LoginButton <LoginButton
className={`mt-2 ${styles.providerButton}`} className={`mt-2 ${styles.providerButton}`}
key={provider.id}
type={provider.id.toLowerCase()} type={provider.id.toLowerCase()}
onClick={() => signIn(provider.id, { callbackUrl, multiAuth })} onClick={() => signIn(provider.id, { callbackUrl, multiAuth })}
text={`${text || 'Login'} with`} text={`${text || 'Login'} with`}