mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed user avatar on settings
This commit is contained in:
parent
3856e6d22d
commit
2395c9fbab
1 changed files with 1 additions and 5 deletions
|
@ -32,12 +32,8 @@ const ProfileAvatar: FC<ProfileAvatarProps> = ({
|
||||||
[onChangePhoto],
|
[onChangePhoto],
|
||||||
);
|
);
|
||||||
|
|
||||||
const backgroundImage = photo
|
|
||||||
? `url("${getURL(photo, ImagePresets.avatar)}")`
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Avatar url={backgroundImage} size={size} className={styles.avatar}>
|
<Avatar url={photo?.url} size={size} className={styles.avatar}>
|
||||||
{canEdit && <input type="file" onInput={onInputChange} />}
|
{canEdit && <input type="file" onInput={onInputChange} />}
|
||||||
{canEdit && (
|
{canEdit && (
|
||||||
<Button
|
<Button
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue