mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Remove userContext from pages dir
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user