Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32212947
D10167.1765145408.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
892 B
Referenced Files
None
Subscribers
None
D10167.1765145408.diff
View Options
diff --git a/native/avatars/edit-user-avatar.react.js b/native/avatars/edit-user-avatar.react.js
--- a/native/avatars/edit-user-avatar.react.js
+++ b/native/avatars/edit-user-avatar.react.js
@@ -77,13 +77,15 @@
);
}, [navigate, getRegistrationModeEnabled]);
- const setENSUserAvatar = React.useCallback(() => {
- nativeSetUserAvatar({ type: 'ens' });
- }, [nativeSetUserAvatar]);
+ const setENSUserAvatar = React.useCallback(
+ () => nativeSetUserAvatar({ type: 'ens' }),
+ [nativeSetUserAvatar],
+ );
- const removeUserAvatar = React.useCallback(() => {
- nativeSetUserAvatar({ type: 'remove' });
- }, [nativeSetUserAvatar]);
+ const removeUserAvatar = React.useCallback(
+ () => nativeSetUserAvatar({ type: 'remove' }),
+ [nativeSetUserAvatar],
+ );
const hasCurrentAvatar = !!userInfo?.avatar;
const actionSheetConfig = React.useMemo(() => {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 10:10 PM (12 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5846144
Default Alt Text
D10167.1765145408.diff (892 B)
Attached To
Mode
D10167: [native] Pass on nativeSetUserAvatar's Promise to actionSheetConfig
Attached
Detach File
Event Timeline
Log In to Comment