Skip to content

Commit

Permalink
chore: putting ErrorBoundary within NavigationContainer (#3147)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasburtey authored Mar 30, 2024
1 parent ff14efb commit b13e6db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export const App = () => (
<GaloyClient>
<GaloyThemeProvider>
<FeatureFlagContextProvider>
<ErrorBoundary FallbackComponent={ErrorScreen}>
<NavigationContainerWrapper>
<NavigationContainerWrapper>
<ErrorBoundary FallbackComponent={ErrorScreen}>
<RootSiblingParent>
<NotificationsProvider>
<AppStateWrapper />
Expand All @@ -63,8 +63,8 @@ export const App = () => (
</NotificationsProvider>
<GaloyToast />
</RootSiblingParent>
</NavigationContainerWrapper>
</ErrorBoundary>
</ErrorBoundary>
</NavigationContainerWrapper>
</FeatureFlagContextProvider>
</GaloyThemeProvider>
</GaloyClient>
Expand Down
4 changes: 2 additions & 2 deletions app/components/contact-modal/contact-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ const ContactModal: React.FC<Props> = ({
theme: { colors },
} = useTheme()

const { navigate } = useNavigation<StackNavigationProp<RootStackParamList>>()
const navigation = useNavigation<StackNavigationProp<RootStackParamList>>()

const contactOptionList = [
{
id: SupportChannels.Chatbot,
name: LL.support.chatbot(),
icon: <Icon name={"chatbubbles-outline"} type="ionicon" />,
action: () => {
navigate("chatbot")
navigation.navigate("chatbot")
toggleModal()
},
},
Expand Down

0 comments on commit b13e6db

Please sign in to comment.