Remove userContext from pages dir

This commit is contained in:
Aaron William Po
2023-02-08 07:57:55 -05:00
parent f6880deeb6
commit d8ae58844c
6 changed files with 5 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
import Layout from '@/components/ui/Layout';
import Spinner from '@/components/ui/Spinner';
import withPageAuthRequired from '@/config/auth/withPageAuthRequired';
import UserContext from '@/contexts/userContext';
import { GetServerSideProps, NextPage } from 'next';
import { useContext } from 'react';
import UserContext from '../contexts/userContext';
const ProtectedPage: NextPage = () => {
const { user, error, isLoading } = useContext(UserContext);