Implement redux.

This commit is contained in:
Mike Cao 2020-08-04 22:45:05 -07:00
parent 9d8a2406e1
commit 5d4ff5cfa4
31 changed files with 341 additions and 85 deletions

18
pages/settings.js Normal file
View 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>
);
}