define the user in the types

Tento commit je obsažen v:
Sven Czarnian
2022-11-04 13:14:19 +01:00
rodič d412abb60e
revize e221e0156b
2 změnil soubory, kde provedl 8 přidání a 7 odebrání

Zobrazit soubor

@@ -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 };

Zobrazit soubor

@@ -3,3 +3,10 @@ export interface AirportOverview {
name: string;
flightInformationRegion: string;
};
export interface User {
vatsimId: string;
fullName: string;
administrator: boolean;
airportConfigurationAccess: string[];
};