Skip to content

Commit

Permalink
Merge pull request #1771 from Expensify/jules-fixIOUModalNavigation
Browse files Browse the repository at this point in the history
  • Loading branch information
flodnv authored Mar 15, 2021
2 parents 815d13d + 3f89023 commit a7179a6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
9 changes: 7 additions & 2 deletions src/pages/iou/IOUBillPage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import React from 'react';
import IOUModal from './IOUModal';
import ScreenWrapper from '../../components/ScreenWrapper';

export default props => (
// eslint-disable-next-line react/jsx-props-no-spreading
<IOUModal {...props} hasMultipleParticipants />
<ScreenWrapper>
{() => (
// eslint-disable-next-line react/jsx-props-no-spreading
<IOUModal {...props} hasMultipleParticipants />
)}
</ScreenWrapper>
);
2 changes: 1 addition & 1 deletion src/pages/iou/IOUModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class IOUModal extends Component {
<Header title={this.getTitleForStep()} />
<View style={[styles.reportOptions, styles.flexRow]}>
<TouchableOpacity
onCloseButtonPress={Navigation.dismissModal}
onPress={Navigation.dismissModal}
style={[styles.touchableButtonImage]}
>
<Icon src={Close} />
Expand Down
9 changes: 7 additions & 2 deletions src/pages/iou/IOURequestPage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import React from 'react';
import IOUModal from './IOUModal';
import ScreenWrapper from '../../components/ScreenWrapper';

export default props => (
// eslint-disable-next-line react/jsx-props-no-spreading
<IOUModal {...props} />
<ScreenWrapper>
{() => (
// eslint-disable-next-line react/jsx-props-no-spreading
<IOUModal {...props} />
)}
</ScreenWrapper>
);

0 comments on commit a7179a6

Please sign in to comment.