HomePhabricator
Diffusion Comm 7f75aff169bf

[native] introduce useSaveUserAvatar hook

Description

[native] introduce useSaveUserAvatar hook

Summary:
To better prepare the EmojiAvatarCreation component to handle both user and thread avatars I want to factor out this User avatar specfic function into a hook in the avatar util file so that the component won't be as cluttered when we extend to thread avatars


Depends on D7423

Test Plan: flow and I am still able to save my avatar with the expected behavior

Reviewers: ashoat, atul

Reviewed By: ashoat

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D7424

Details

Provenance
ginsuAuthored on Apr 13 2023, 12:56 PM
Reviewer
ashoat
Differential Revision
D7424: [native] introduce useSaveUserAvatar hook
Parents
rCOMM94c79f1808ee: [native] move emoji avatar creation from profile directory to components…
Branches
Unknown
Tags
Unknown