fix: login grid missing keys

This commit is contained in:
vinceh121 2025-10-31 22:52:45 +01:00
parent f38b84dc29
commit 01e3a22189
No known key found for this signature in database
GPG Key ID: 780725DCACF96F16

View File

@ -34,7 +34,7 @@ export default function LoginPage() {
}, []) }, [])
const grid = [ const grid = [
<Card.Grid style={{width: md ? '100%' : '50%', textAlign: 'center'}} hoverable={false}> <Card.Grid key="form" style={{width: md ? '100%' : '50%', textAlign: 'center'}} hoverable={false}>
{wantRegister ? <RegisterForm/> : <LoginForm ssoLogin={configuration?.ssoLogin}/>} {wantRegister ? <RegisterForm/> : <LoginForm ssoLogin={configuration?.ssoLogin}/>}
{ {
configuration?.registerEnabled && configuration?.registerEnabled &&
@ -47,13 +47,13 @@ export default function LoginPage() {
</Button> </Button>
} }
</Card.Grid>, </Card.Grid>,
<Card.Grid style={{width: md ? '100%' : '50%'}} hoverable={false}> <Card.Grid key="ads" style={{width: md ? '100%' : '50%'}} hoverable={false}>
<TextPage resource='ads.md'/> <TextPage resource='ads.md'/>
</Card.Grid> </Card.Grid>
]; ]
if (md) { if (md) {
grid.reverse(); grid.reverse()
} }
return ( return (