define the user in the types

This commit is contained in:
Sven Czarnian
2022-11-04 13:14:19 +01:00
부모 d412abb60e
커밋 e221e0156b
2개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제

파일 보기

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