Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3329418
D13920.id.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
D13920.id.diff
View Options
diff --git a/native/components/nux-tips-context.react.js b/native/components/nux-tips-context.react.js
--- a/native/components/nux-tips-context.react.js
+++ b/native/components/nux-tips-context.react.js
@@ -5,7 +5,6 @@
import { values } from 'lib/utils/objects.js';
-import type { AppNavigationProp } from '../navigation/app-navigator.react.js';
import type { NUXTipRouteNames } from '../navigation/route-names.js';
import {
CommunityDrawerTipRouteName,
@@ -26,9 +25,6 @@
type NUXTipParams = {
+tooltipLocation: 'below' | 'above' | 'absolute',
+routeName: NUXTipRouteNames,
- +exitingCallback?: <Route: NUXTipRouteNames>(
- navigation: AppNavigationProp<Route>,
- ) => void,
};
const firstNUXTipKey = nuxTip.INTRO;
@@ -49,7 +45,6 @@
[nuxTip.MUTED]: {
routeName: MutedTabTipRouteName,
tooltipLocation: 'below',
- exitingCallback: navigation => navigation.goBack(),
},
};
diff --git a/native/tooltip/nux-tips-overlay.react.js b/native/tooltip/nux-tips-overlay.react.js
--- a/native/tooltip/nux-tips-overlay.react.js
+++ b/native/tooltip/nux-tips-overlay.react.js
@@ -426,15 +426,11 @@
const onPressOk = React.useCallback(() => {
const { orderedTips, orderedTipsIndex } = route.params;
- const { exitingCallback } = tipParams;
goBackOnce();
- if (exitingCallback) {
- exitingCallback?.(navigation);
- }
-
const nextOrderedTipsIndex = orderedTipsIndex + 1;
if (nextOrderedTipsIndex >= orderedTips.length) {
+ navigation.goBack();
return;
}
@@ -448,7 +444,7 @@
orderedTipsIndex: nextOrderedTipsIndex,
},
});
- }, [goBackOnce, navigation, route.params, tipParams]);
+ }, [goBackOnce, navigation, route.params]);
const button = React.useMemo(
() =>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 4:56 PM (14 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2537576
Default Alt Text
D13920.id.diff (1 KB)
Attached To
Mode
D13920: [native] remove exitingCallback
Attached
Detach File
Event Timeline
Log In to Comment