Skip to content

Commit

Permalink
Merge pull request #27900 from getusha/fix-27869
Browse files Browse the repository at this point in the history
Fix: Receipt scan request container corners are not rounded while it is in progress
  • Loading branch information
bondydaa authored Sep 28, 2023
2 parents 365cdbd + 71c6450 commit 3f83b9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/ReportActionItem/MoneyRequestPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,12 @@ function MoneyRequestPreview(props) {
errorRowStyles={[styles.mbn1]}
needsOffscreenAlphaCompositing
>
<View style={[isScanning || props.isWhisper ? styles.reportPreviewBoxHoverBorder : undefined]}>
<View
style={[
isScanning || props.isWhisper ? [styles.reportPreviewBoxHoverBorder, styles.reportContainerBorderRadius] : undefined,
!props.onPreviewPressed ? [styles.moneyRequestPreviewBox, ...props.containerStyles] : {},
]}
>
{hasReceipt && (
<ReportActionItemImages
images={receiptImages}
Expand Down
4 changes: 4 additions & 0 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -3520,6 +3520,10 @@ const styles = (theme) => ({
backgroundColor: theme.border,
},

reportContainerBorderRadius: {
borderRadius: variables.componentBorderRadiusLarge,
},

reportPreviewBoxBody: {
padding: 16,
},
Expand Down

0 comments on commit 3f83b9b

Please sign in to comment.