typed some components

This commit is contained in:
muerwre 2019-02-21 14:54:00 +07:00
parent a3f7fd9b46
commit a5126aff4a
7 changed files with 23 additions and 31 deletions

View file

@ -12,12 +12,13 @@ export interface IUser {
success: boolean,
id?: string,
token?: string,
userdata: {
name: string,
agent: string,
ip: string,
photo: string,
}
photo: string,
first_name: string,
// userdata: {
// name: string,
// agent: string,
// ip: string,
// }
}
export const ROLES: IRoles = {
@ -34,10 +35,6 @@ export const DEFAULT_USER: IUser = {
success: false,
id: null,
token: null,
userdata: {
name: '',
agent: '',
ip: '',
photo: '',
}
photo: null,
first_name: null,
};