chore: code cleanup

This commit is contained in:
Muhsin Keloth
2024-04-25 10:21:59 +05:30
parent b74e807ada
commit b5185c0100
2 changed files with 4 additions and 4 deletions
@@ -8,8 +8,8 @@
<profile-avatar
:src="src"
:name="userNameWithoutEmoji"
@change="updateProfilePicture"
@delete="deleteProfilePicture"
@change-avatar="updateProfilePicture"
@delete-avatar="deleteProfilePicture"
/>
</div>
</div>
@@ -108,13 +108,13 @@ const openFileInput = () => {
const onImageUpload = event => {
const [file] = event.target.files;
emits('change', {
emits('change-avatar', {
file,
url: file ? URL.createObjectURL(file) : null,
});
};
const onAvatarDelete = () => {
emits('delete');
emits('delete-avatar');
};
</script>