Auth: rejestracja bez zbednego napisu o domyslnej roli (aspekt techniczny nie dla uzytkownika)

This commit is contained in:
tisachi
2026-10-17 03:12:08 +02:00
parent da0f428ed0
commit d2992325aa
2 changed files with 3 additions and 12 deletions

View File

@@ -5,13 +5,7 @@ import { Brandmark } from './Brandmark';
/* Layout stron auth: panel brandingowy (gradient w akcencie + wzór siatki, claim)
+ panel formularza. Na mobile — jeden słupek (branding u góry). */
export default function AuthShell({
subtitle,
children,
}: {
subtitle?: string;
children: ReactNode;
}) {
export default function AuthShell({ children }: { children: ReactNode }) {
return (
<div className="relative flex min-h-dvh items-center justify-center p-4">
<ThemeToggle className="fixed right-4 top-4 z-10" />
@@ -81,10 +75,7 @@ export default function AuthShell({
))}
</ul>
</div>
<Card className="m-0 rounded-none border-0 p-7 shadow-none md:p-8">
{subtitle && <p className="mb-5 text-[0.875rem] text-dim">{subtitle}</p>}
{children}
</Card>
<Card className="m-0 rounded-none border-0 p-7 shadow-none md:p-8">{children}</Card>
</div>
</div>
);

View File

@@ -33,7 +33,7 @@ export default function Register() {
};
return (
<AuthShell subtitle="Rejestracja (domyślna rola: ćwiczący)">
<AuthShell>
<form onSubmit={submit}>
<Field label="E-mail">
<Input