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],
|
||||
);
|
||||
|
||||
const backgroundImage = photo
|
||||
? `url("${getURL(photo, ImagePresets.avatar)}")`
|
||||
: undefined;
|
||||
|
||||
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 && (
|
||||
<Button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue