Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/components/BlockingViews/FullPageNotFoundView.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const propTypes = {
/** Whether we should show a link to navigate elsewhere */
shouldShowLink: PropTypes.bool,

/** Whether we should show the back button on the header */
shouldShowBackButton: PropTypes.bool,

/** The key in the translations file to use for the go back link */
linkKey: PropTypes.string,

Expand All @@ -46,6 +49,7 @@ const defaultProps = {
linkKey: 'notFound.goBackHome',
onBackButtonPress: Navigation.goBack,
shouldShowLink: false,
shouldShowBackButton: true,
onLinkPress: () => Navigation.dismissModal(),
};

Expand All @@ -54,7 +58,10 @@ function FullPageNotFoundView(props) {
if (props.shouldShow) {
return (
<>
<HeaderWithBackButton onBackButtonPress={props.onBackButtonPress} />
<HeaderWithBackButton
onBackButtonPress={props.onBackButtonPress}
shouldShowBackButton={props.shouldShowBackButton}
/>
<View style={[styles.flex1, styles.blockingViewContainer]}>
<BlockingView
icon={Illustrations.ToddBehindCloud}
Expand Down