Added user button and menu.
This commit is contained in:
18
pages/account.js
Normal file
18
pages/account.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import Layout from 'components/Layout';
|
||||
import Account from 'components/Account';
|
||||
import useRequireLogin from 'hooks/useRequireLogin';
|
||||
|
||||
export default function AccountPage() {
|
||||
const { loading } = useRequireLogin();
|
||||
|
||||
if (loading) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Account />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user