Only show remove button when there is an avatar to remove
This commit is contained in:
@@ -65,13 +65,15 @@ export const AvatarInputField = forwardRef(
|
|||||||
<EditIcon />
|
<EditIcon />
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
{(avatarUrl || objUrl) && !removed && (
|
||||||
className={styles.removeButton}
|
<Button
|
||||||
variant="icon"
|
className={styles.removeButton}
|
||||||
onPress={onPressRemoveAvatar}
|
variant="icon"
|
||||||
>
|
onPress={onPressRemoveAvatar}
|
||||||
Remove
|
>
|
||||||
</Button>
|
Remove
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user