define the user in the types
This commit is contained in:
		| @@ -2,13 +2,7 @@ import axios from 'axios'; | ||||
| import { createContext, Dispatch, SetStateAction, useEffect, useState } from 'react'; | ||||
| import { useNavigate } from 'react-router-dom'; | ||||
| import { Configuration } from '../services'; | ||||
|  | ||||
| export interface User { | ||||
|   vatsimId: string; | ||||
|   fullName: string; | ||||
|   administrator: boolean; | ||||
|   airportConfigurationAccess: string[]; | ||||
| }; | ||||
| import { User } from '../types'; | ||||
|  | ||||
| const AuthContext = createContext<{ | ||||
|   auth: { valid: boolean; user: User }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user