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

@ -2,6 +2,7 @@ import React from 'react';
import Layout from 'components/layout/Layout';
import Settings from 'components/pages/Settings';
import useRequireLogin from 'hooks/useRequireLogin';
import { SHOW_HEADER, SHOW_FOOTER } from 'lib/constants';
export default function SettingsPage() {
const { loading } = useRequireLogin();
@ -11,7 +12,7 @@ export default function SettingsPage() {
}
return (
<Layout>
<Layout header={SHOW_HEADER} footer={SHOW_FOOTER}>
<Settings />
</Layout>
);