mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Updated login and layout pages.
This commit is contained in:
parent
9d967fb0fe
commit
4f15c4f146
18 changed files with 103 additions and 106 deletions
|
|
@ -3,8 +3,10 @@ import Head from 'next/head';
|
|||
import Header from 'components/layout/Header';
|
||||
import Footer from 'components/layout/Footer';
|
||||
import useLocale from 'hooks/useLocale';
|
||||
import useRequireLogin from 'hooks/useRequireLogin';
|
||||
|
||||
export default function Layout({ title, children, header = true, footer = true }) {
|
||||
export default function AppLayout({ title, children }) {
|
||||
useRequireLogin();
|
||||
const { dir } = useLocale();
|
||||
|
||||
return (
|
||||
|
|
@ -12,9 +14,9 @@ export default function Layout({ title, children, header = true, footer = true }
|
|||
<Head>
|
||||
<title>{title ? `${title} | umami` : 'umami'}</title>
|
||||
</Head>
|
||||
{header && <Header />}
|
||||
<Header />
|
||||
<main>{children}</main>
|
||||
{footer && <Footer />}
|
||||
<Footer />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue