1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

added messages to profile dialog

This commit is contained in:
Fedor Katurov 2019-11-11 16:41:37 +07:00
parent 618c2e3275
commit 298ba7d586
12 changed files with 62 additions and 24 deletions

View file

@ -44,6 +44,7 @@ export const EMPTY_USER: IUser = {
cover: null,
is_activated: false,
is_user: false,
last_seen: null,
};
export interface IApiUser {

View file

@ -104,8 +104,7 @@ function* openProfile({ username }: ReturnType<typeof authOpenProfile>) {
return yield put(modalSetShown(false));
}
yield put(authSetProfile({ is_loading: false }));
console.log({ username, user });
yield put(authSetProfile({ is_loading: false, user }));
}
function* authSaga() {

View file

@ -13,6 +13,7 @@ export interface IUser {
photo: IFile;
cover: IFile;
name: string;
last_seen: string;
is_activated: boolean;
is_user: boolean;