Skip to content

Commit

Permalink
fix double inset bottom space
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Dec 14, 2024
1 parent 258e2be commit 9dbf483
Showing 1 changed file with 43 additions and 45 deletions.
88 changes: 43 additions & 45 deletions src/pages/TransactionDuplicate/Confirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,52 +94,50 @@ function Confirmation() {
testID={Confirmation.displayName}
shouldShowOfflineIndicator
>
{({safeAreaPaddingBottomStyle}) => (
<FullPageNotFoundView shouldShow={shouldShowNotFoundPage}>
<View style={[styles.flex1, safeAreaPaddingBottomStyle]}>
<HeaderWithBackButton
title={translate('iou.reviewDuplicates')}
onBackButtonPress={goBack}
/>
<ScrollView>
<View style={[styles.ph5, styles.pb8]}>
<Text
family="EXP_NEW_KANSAS_MEDIUM"
fontSize={variables.fontSizeLarge}
style={styles.pb5}
>
{translate('violations.confirmDetails')}
</Text>
<Text>{translate('violations.confirmDuplicatesInfo')}</Text>
</View>
{/* We need that provider here becuase MoneyRequestView component requires that */}
<ShowContextMenuContext.Provider value={contextValue}>
<MoneyRequestView
report={report}
shouldShowAnimatedBackground={false}
readonly
isFromReviewDuplicates
updatedTransaction={transaction as OnyxEntry<Transaction>}
/>
</ShowContextMenuContext.Provider>
</ScrollView>
<FixedFooter style={styles.mtAuto}>
<Button
text={translate('common.confirm')}
success
onPress={() => {
if (!isReportOwner) {
resolveDuplicates();
return;
}
mergeDuplicates();
}}
large
<FullPageNotFoundView shouldShow={shouldShowNotFoundPage}>
<View style={[styles.flex1]}>
<HeaderWithBackButton
title={translate('iou.reviewDuplicates')}
onBackButtonPress={goBack}
/>
<ScrollView>
<View style={[styles.ph5, styles.pb8]}>
<Text
family="EXP_NEW_KANSAS_MEDIUM"
fontSize={variables.fontSizeLarge}
style={styles.pb5}
>
{translate('violations.confirmDetails')}
</Text>
<Text>{translate('violations.confirmDuplicatesInfo')}</Text>
</View>
{/* We need that provider here becuase MoneyRequestView component requires that */}
<ShowContextMenuContext.Provider value={contextValue}>
<MoneyRequestView
report={report}
shouldShowAnimatedBackground={false}
readonly
isFromReviewDuplicates
updatedTransaction={transaction as OnyxEntry<Transaction>}
/>
</FixedFooter>
</View>
</FullPageNotFoundView>
)}
</ShowContextMenuContext.Provider>
</ScrollView>
<FixedFooter style={styles.mtAuto}>
<Button
text={translate('common.confirm')}
success
onPress={() => {
if (!isReportOwner) {
resolveDuplicates();
return;
}
mergeDuplicates();
}}
large
/>
</FixedFooter>
</View>
</FullPageNotFoundView>
</ScreenWrapper>
);
}
Expand Down

0 comments on commit 9dbf483

Please sign in to comment.