Added router navigation for settings and details.

This commit is contained in:
Mike Cao committed 2020-09-16 21:55:32 -07:00
1 parent 30bca80dac
commit 53c23a280b
21 files changed
+156 -73

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
import Index from './index';
export default Index;
+18
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>
);
}
+3
View File
@@ -0,0 +1,3 @@
import Index from './index';
export default Index;