Added router navigation for settings and details.

This commit is contained in:
Mike Cao 2020-09-16 21:55:32 -07:00
parent 30bca80dac
commit 53c23a280b
21 changed files with 156 additions and 73 deletions

View file

@ -0,0 +1,3 @@
import Index from './index';
export default Index;

18
pages/settings/index.js Normal file
View file

@ -0,0 +1,18 @@
import React from 'react';
import Layout from 'components/layout/Layout';
import Settings from 'components/settings/Settings';
import useRequireLogin from 'hooks/useRequireLogin';
export default function SettingsPage() {
const { loading } = useRequireLogin();
if (loading) {
return null;
}
return (
<Layout>
<Settings />
</Layout>
);
}

View file

@ -0,0 +1,3 @@
import Index from './index';
export default Index;