This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
resolver/src/store/reducers/users/UserState.ts
2018-12-07 09:45:06 +07:00

32 lines
610 B
TypeScript

import { User,Profile } from 'src/core/domain/users'
import { Map, fromJS, List } from 'immutable'
/**
* User state
*
* @export
* @class UserState
*/
export class UserState {
[key: string]: any
/**
* The list of users information
*/
info: Map<string, Profile> = Map({})
/**
* If users profile are loaded
*/
loaded: Boolean = false
/**
* If edit profile is open {true} or not {false}
*/
openEditProfile: Boolean = false
/**
* People data storage
*/
people?: Map<string, any> = Map({hasMoreData: true, lastPageRequest: -1, lastUserId: ''})
}