Added router navigation for settings and details.
This commit is contained in:
3
pages/settings/accounts.js
Normal file
3
pages/settings/accounts.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import Index from './index';
|
||||
|
||||
export default Index;
|
||||
18
pages/settings/index.js
Normal file
18
pages/settings/index.js
Normal 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
pages/settings/profile.js
Normal file
3
pages/settings/profile.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import Index from './index';
|
||||
|
||||
export default Index;
|
||||
Reference in New Issue
Block a user