remove unused functions and imports
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { createContext, Dispatch, SetStateAction, useEffect, useState } from 'react';
|
import { createContext, Dispatch, SetStateAction, useEffect, useState } from 'react';
|
||||||
import { useNavigate } from 'react-router-dom';
|
|
||||||
import { Auth } from '../services';
|
import { Auth } from '../services';
|
||||||
import { BackendReturnStatus, IAuthState } from '../types';
|
import { BackendReturnStatus, IAuthState } from '../types';
|
||||||
|
|
||||||
@@ -22,7 +21,6 @@ const AuthContext = createContext<{
|
|||||||
|
|
||||||
export const AuthProvider = ({ children }: { children: any }) => {
|
export const AuthProvider = ({ children }: { children: any }) => {
|
||||||
const [auth, setAuth] = useState<IAuthState>(InitialAuthState);
|
const [auth, setAuth] = useState<IAuthState>(InitialAuthState);
|
||||||
const navigate = useNavigate();
|
|
||||||
|
|
||||||
const resetAuth = () => setAuth(InitialAuthState);
|
const resetAuth = () => setAuth(InitialAuthState);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user