remove unused functions and imports
Šī revīzija ir iekļauta:
@@ -1,5 +1,4 @@
|
||||
import { createContext, Dispatch, SetStateAction, useEffect, useState } from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { Auth } from '../services';
|
||||
import { BackendReturnStatus, IAuthState } from '../types';
|
||||
|
||||
@@ -22,7 +21,6 @@ const AuthContext = createContext<{
|
||||
|
||||
export const AuthProvider = ({ children }: { children: any }) => {
|
||||
const [auth, setAuth] = useState<IAuthState>(InitialAuthState);
|
||||
const navigate = useNavigate();
|
||||
|
||||
const resetAuth = () => setAuth(InitialAuthState);
|
||||
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user