Implement redux.
This commit is contained in:
18
pages/settings.js
Normal file
18
pages/settings.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import Layout from 'components/Layout';
|
||||
import Settings from 'components/Settings';
|
||||
import useUser from 'hooks/useUser';
|
||||
|
||||
export default function SettingsPage() {
|
||||
const { loading } = useUser();
|
||||
|
||||
if (loading) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Settings />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user