File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ const propTypes = {
65
65
phoneNumber : PropTypes . string ,
66
66
} ) ) . isRequired ,
67
67
68
+ /** Whether this is an IOU split and belongs to a group report */
69
+ isGroupSplit : PropTypes . bool . isRequired ,
70
+
68
71
...windowDimensionsPropTypes ,
69
72
70
73
...withLocalizePropTypes ,
@@ -411,7 +414,7 @@ class IOUConfirmationList extends Component {
411
414
canSelectMultipleOptions = { this . props . hasMultipleParticipants }
412
415
selectedOptions = { this . getSelectedOptions ( ) }
413
416
onSelectRow = { toggleOption }
414
- disableRowInteractivity = { ! this . props . hasMultipleParticipants }
417
+ disableRowInteractivity = { ! this . props . isGroupSplit }
415
418
optionHoveredStyle = { hoverStyle }
416
419
/>
417
420
</ ScrollView >
Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ class IOUModal extends Component {
356
356
onUpdateComment = { this . updateComment }
357
357
iouType = { this . props . iouType }
358
358
localCurrencyCode = { this . props . myPersonalDetails . localCurrencyCode }
359
+ isGroupSplit = { this . steps . length === 2 }
359
360
/>
360
361
) }
361
362
</ >
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ const propTypes = {
40
40
41
41
/** IOU type */
42
42
iouType : PropTypes . string ,
43
+
44
+ /** Whether this is an IOU split and belongs to a group report */
45
+ isGroupSplit : PropTypes . bool . isRequired ,
43
46
} ;
44
47
45
48
const defaultProps = {
@@ -59,6 +62,7 @@ const IOUConfirmPage = props => (
59
62
onConfirm = { props . onConfirm }
60
63
iouType = { props . iouType }
61
64
localCurrencyCode = { props . localCurrencyCode }
65
+ isGroupSplit = { props . isGroupSplit }
62
66
/>
63
67
) ;
64
68
You can’t perform that action at this time.
0 commit comments