diff options
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/com/util/Link.tsx | 1 | ||||
-rw-r--r-- | src/view/shell/desktop/LeftNav.tsx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx index 4008a6fc3..6a931d9a4 100644 --- a/src/view/com/util/Link.tsx +++ b/src/view/com/util/Link.tsx @@ -11,6 +11,7 @@ import { type ViewStyle, } from 'react-native' import {sanitizeUrl} from '@braintree/sanitize-url' +import {StackActions} from '@react-navigation/native' import { type DebouncedNavigationProp, diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index ee2b1778b..aa18f9b70 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -350,7 +350,7 @@ function NavItem({count, hasNew, href, icon, iconFilled, label}: NavItemProps) { } else { const [screen, params] = router.matchPath(href) // @ts-expect-error TODO: type matchPath well enough that it can be plugged into navigation.navigate directly - navigation.popTo(screen, params) + navigation.navigate(screen, params, {pop: true}) } }, [navigation, href, isCurrent], |