Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3270158
D8758.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8758.diff
View Options
diff --git a/lib/components/base-edit-thread-avatar-provider.react.js b/lib/components/base-edit-thread-avatar-provider.react.js
--- a/lib/components/base-edit-thread-avatar-provider.react.js
+++ b/lib/components/base-edit-thread-avatar-provider.react.js
@@ -36,7 +36,6 @@
React.createContext<?EditThreadAvatarContextType>();
type Props = {
- +displayFailureAlert: () => mixed,
+useUploadSelectedMedia: (
setProcessingOrUploadInProgress?: (inProgress: boolean) => mixed,
) => (selection: NativeMediaSelection) => Promise<?ImageAvatarDBContent>,
diff --git a/native/avatars/native-edit-thread-avatar-provider.react.js b/native/avatars/native-edit-thread-avatar-provider.react.js
--- a/native/avatars/native-edit-thread-avatar-provider.react.js
+++ b/native/avatars/native-edit-thread-avatar-provider.react.js
@@ -7,15 +7,6 @@
import { useUploadSelectedMedia } from './avatar-hooks.js';
import { activeThreadSelector } from '../navigation/nav-selectors.js';
import { NavContext } from '../navigation/navigation-context.js';
-import Alert from '../utils/alert.js';
-
-const displayAvatarUpdateFailureAlert = () =>
- Alert.alert(
- 'Couldn’t save avatar',
- 'Please try again later',
- [{ text: 'OK' }],
- { cancelable: true },
- );
type Props = {
+children: React.Node,
@@ -31,7 +22,6 @@
return (
<BaseEditThreadAvatarProvider
- displayFailureAlert={displayAvatarUpdateFailureAlert}
useUploadSelectedMedia={useUploadSelectedMedia}
activeThreadID={activeThreadID}
>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 4:21 AM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2513276
Default Alt Text
D8758.diff (1 KB)
Attached To
Mode
D8758: [lib][native] Remove `displayFailureAlert` prop from `EditThreadAvatarProvider`
Attached
Detach File
Event Timeline
Log In to Comment