mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
using constants to define header/footer appearence
This commit is contained in:
parent
00adf86fa8
commit
cdb77f1be1
5 changed files with 20 additions and 9 deletions
|
|
@ -7,11 +7,16 @@ import { useRouter } from 'next/router';
|
|||
export default function LoginPage() {
|
||||
const { query } = useRouter();
|
||||
if (query.hash) {
|
||||
return <AutoLogin hash={query.hash} />;
|
||||
return (
|
||||
<Layout title="login" header={false} footer={false} center>
|
||||
<AutoLogin hash={query.hash} />
|
||||
</Layout>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<Layout title="login" header={false} footer={false} center>
|
||||
<LoginForm />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Layout title="login" header={false} footer={false} center>
|
||||
<LoginForm />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue