Fix user logic.

This commit is contained in:
Mike Cao 2023-01-30 23:03:08 -08:00
parent 02a1438cfe
commit 89f2fd601e
5 changed files with 2 additions and 23 deletions

View file

@ -1,14 +1,7 @@
import AppLayout from 'components/layout/AppLayout';
import TeamsList from 'components/pages/settings/teams/TeamsList';
import useUser from 'hooks/useUser';
export default function TeamsPage() {
const { user } = useUser();
if (!user) {
return null;
}
return (
<AppLayout>
<TeamsList />