using constants to define header/footer appearence

This commit is contained in:
Dario Guarascio 2021-10-12 22:46:55 +02:00
parent 00adf86fa8
commit cdb77f1be1
5 changed files with 20 additions and 9 deletions

View file

@ -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>
);