@@ -86,41 +86,39 @@ function ReceiptViewModal({route}: ReceiptViewModalProps) {
8686 } , [ route . params . backTo ] ) ;
8787
8888 return (
89- < >
90- < Modal
91- type = { CONST . MODAL . MODAL_TYPE . RIGHT_DOCKED }
92- isVisible
93- onClose = { handleGoBack }
94- onModalHide = { clearAttachmentErrors }
89+ < Modal
90+ type = { CONST . MODAL . MODAL_TYPE . RIGHT_DOCKED }
91+ isVisible
92+ onClose = { handleGoBack }
93+ onModalHide = { clearAttachmentErrors }
94+ >
95+ < HeaderWithBackButton
96+ title = { translate ( 'common.receipt' ) }
97+ shouldDisplayHelpButton = { false }
98+ onBackButtonPress = { handleGoBack }
99+ onCloseButtonPress = { handleCloseConfirmModal }
95100 >
96- < HeaderWithBackButton
97- title = { translate ( 'common.receipt' ) }
98- shouldDisplayHelpButton = { false }
99- onBackButtonPress = { handleGoBack }
100- onCloseButtonPress = { handleCloseConfirmModal }
101- >
102- < Button
103- shouldShowRightIcon
104- iconRight = { Expensicons . Trashcan }
105- onPress = { ( ) => setIsDeleteReceiptConfirmModalVisible ( true ) }
106- innerStyles = { styles . bgTransparent }
107- large
108- />
109- </ HeaderWithBackButton >
110- < AttachmentCarouselView
111- attachments = { receipts }
112- source = { currentReceipt ?. source ?? '' }
113- page = { page }
114- setPage = { setPage }
115- attachmentID = { currentReceipt ?. transactionID }
116- onClose = { handleGoBack }
117- autoHideArrows = { autoHideArrows }
118- cancelAutoHideArrow = { cancelAutoHideArrows }
119- setShouldShowArrows = { setShouldShowArrows }
120- onAttachmentError = { setAttachmentError }
121- shouldShowArrows = { shouldShowArrows }
101+ < Button
102+ shouldShowRightIcon
103+ iconRight = { Expensicons . Trashcan }
104+ onPress = { ( ) => setIsDeleteReceiptConfirmModalVisible ( true ) }
105+ innerStyles = { styles . bgTransparent }
106+ large
122107 />
123- </ Modal >
108+ </ HeaderWithBackButton >
109+ < AttachmentCarouselView
110+ attachments = { receipts }
111+ source = { currentReceipt ?. source ?? '' }
112+ page = { page }
113+ setPage = { setPage }
114+ attachmentID = { currentReceipt ?. transactionID }
115+ onClose = { handleGoBack }
116+ autoHideArrows = { autoHideArrows }
117+ cancelAutoHideArrow = { cancelAutoHideArrows }
118+ setShouldShowArrows = { setShouldShowArrows }
119+ onAttachmentError = { setAttachmentError }
120+ shouldShowArrows = { shouldShowArrows }
121+ />
124122 < ConfirmModal
125123 title = { translate ( 'receipt.deleteReceipt' ) }
126124 isVisible = { isDeleteReceiptConfirmModalVisible }
@@ -132,7 +130,7 @@ function ReceiptViewModal({route}: ReceiptViewModalProps) {
132130 onBackdropPress = { handleCloseConfirmModal }
133131 danger
134132 />
135- </ >
133+ </ Modal >
136134 ) ;
137135}
138136
0 commit comments