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:
parent
618c2e3275
commit
298ba7d586
12 changed files with 62 additions and 24 deletions
|
@ -44,6 +44,7 @@ export const EMPTY_USER: IUser = {
|
|||
cover: null,
|
||||
is_activated: false,
|
||||
is_user: false,
|
||||
last_seen: null,
|
||||
};
|
||||
|
||||
export interface IApiUser {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -13,6 +13,7 @@ export interface IUser {
|
|||
photo: IFile;
|
||||
cover: IFile;
|
||||
name: string;
|
||||
last_seen: string;
|
||||
|
||||
is_activated: boolean;
|
||||
is_user: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue