|
@@ -1,12 +1,7 @@
|
|
|
import { createContext, Dispatch, SetStateAction, useEffect, useState } from 'react';
|
|
|
import { useNavigate } from 'react-router-dom';
|
|
|
import { Auth } from '../services';
|
|
|
-import { User } from '../types';
|
|
|
-
|
|
|
-export interface IAuthState {
|
|
|
- valid: boolean,
|
|
|
- user: User,
|
|
|
-};
|
|
|
+import { IAuthState } from '../types';
|
|
|
|
|
|
const InitialAuthState: IAuthState = {
|
|
|
valid: false,
|