mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +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
|
|
@ -3,6 +3,7 @@ import { useRouter } from 'next/router';
|
|||
import Layout from 'components/layout/Layout';
|
||||
import WebsiteList from 'components/pages/WebsiteList';
|
||||
import useRequireLogin from 'hooks/useRequireLogin';
|
||||
import { SHOW_HEADER, SHOW_FOOTER } from 'lib/constants';
|
||||
|
||||
export default function DashboardPage() {
|
||||
const { loading } = useRequireLogin();
|
||||
|
|
@ -15,7 +16,7 @@ export default function DashboardPage() {
|
|||
}
|
||||
|
||||
return (
|
||||
<Layout header={false} footer={false}>
|
||||
<Layout header={SHOW_HEADER} footer={SHOW_FOOTER}>
|
||||
<WebsiteList userId={userId} />
|
||||
</Layout>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue