define the user in the types
Šī revīzija ir iekļauta:
@@ -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 };
|
||||
|
||||
@@ -3,3 +3,10 @@ export interface AirportOverview {
|
||||
name: string;
|
||||
flightInformationRegion: string;
|
||||
};
|
||||
|
||||
export interface User {
|
||||
vatsimId: string;
|
||||
fullName: string;
|
||||
administrator: boolean;
|
||||
airportConfigurationAccess: string[];
|
||||
};
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user