diff --git a/components/layout/Layout.js b/components/layout/AppLayout.js similarity index 73% rename from components/layout/Layout.js rename to components/layout/AppLayout.js index f1c31bb0..7c59b007 100644 --- a/components/layout/Layout.js +++ b/components/layout/AppLayout.js @@ -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 } {title ? `${title} | umami` : 'umami'} - {header &&
} +
{children}
- {footer &&