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

showing users fullname

This commit is contained in:
Fedor Katurov 2019-11-11 18:10:30 +07:00
parent 298ba7d586
commit 54687b131c
5 changed files with 5 additions and 3 deletions

View file

@ -6,7 +6,7 @@ type IProps = AllHTMLAttributes<HTMLDivElement> & { is_blurred: boolean };
export const BlurWrapper: FC<IProps> = ({ children, is_blurred }) => ( export const BlurWrapper: FC<IProps> = ({ children, is_blurred }) => (
<div <div
className={styles.blur} className={styles.blur}
style={{ filter: `blur(${is_blurred ? 15 : 0}px) saturate(${is_blurred ? 1.5 : 1})` }} style={{ filter: `blur(${is_blurred ? 15 : 0}px) saturate(${is_blurred ? 3 : 1})` }}
> >
{children} {children}
</div> </div>

View file

@ -49,6 +49,6 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: transparentize($color: #000000, $amount: 0.5); // background: transparentize($color: #000000, $amount: 0.5);
cursor: pointer; cursor: pointer;
} }

View file

@ -23,7 +23,7 @@ const ProfileInfo: FC<IProps> = ({ user, is_loading = false }) => (
<div className={styles.field}> <div className={styles.field}>
<div className={styles.name}> <div className={styles.name}>
{is_loading ? <Placeholder width="80%" /> : user.username} {is_loading ? <Placeholder width="80%" /> : user.fullname || user.username}
</div> </div>
<div className={styles.description}> <div className={styles.description}>

View file

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

View file

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