define the user in the types

这个提交包含在:
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[];
};