Refactored fetching to use react-query.

This commit is contained in:
Mike Cao 2022-12-28 15:43:22 -08:00
parent 7bbed0e12b
commit c56f02c475
112 changed files with 255 additions and 492 deletions

View file

@ -1,12 +1,11 @@
import Settings from 'components/pages/Settings';
import ProfileSettings from 'components/pages/ProfileSettings';
import useRequireLogin from 'hooks/useRequireLogin';
import React from 'react';
import useUser from 'hooks/useUser';
export default function TeamsPage() {
const { loading } = useRequireLogin();
const user = useUser();
if (loading) {
if (!user) {
return null;
}