[Refactoring][Breaking Changes]
- Move `reducers` and `actions` folders to `store` folder. - Move pages container components to `containers` folder.
This commit is contained in:
39
src/store/reducers/users/UserState.ts
Normal file
39
src/store/reducers/users/UserState.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
import { User,Profile } from 'src/core/domain/users'
|
||||
|
||||
/**
|
||||
* User state
|
||||
*
|
||||
* @export
|
||||
* @class UserState
|
||||
*/
|
||||
export class UserState {
|
||||
/**
|
||||
* The list of users information
|
||||
*
|
||||
* @type {({[userId: string]: Profile} | null)}
|
||||
* @memberof UserState
|
||||
*/
|
||||
info: {[userId: string]: Profile} = {}
|
||||
|
||||
/**
|
||||
* If users profile are loaded
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof UserState
|
||||
*/
|
||||
loaded: Boolean = false
|
||||
|
||||
/**
|
||||
* If edit profile is open {true} or not {false}
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof UserState
|
||||
*/
|
||||
openEditProfile: Boolean = false
|
||||
|
||||
/**
|
||||
* People data storage
|
||||
*/
|
||||
people?: {hasMoreData: boolean, lastPageRequest: number, lastUserId: string} =
|
||||
{hasMoreData: true, lastPageRequest: -1, lastUserId: ''}
|
||||
}
|
||||
Reference in New Issue
Block a user