Skip to content

Commit

Permalink
Merge pull request #3517 from parasharrajat/betas
Browse files Browse the repository at this point in the history
Urgent Fix: Missed passing a parameter to NewchatOptions
  • Loading branch information
Clement DAL PALU authored Jun 10, 2021
2 parents b2b5643 + 4f52861 commit 655730f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/NewChatPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class NewChatPage extends Component {
props.reports,
props.personalDetails,
'',
false,
props.betas,
);

Expand Down Expand Up @@ -153,6 +154,7 @@ class NewChatPage extends Component {
this.props.reports,
this.props.personalDetails,
searchValue,
false,
this.props.betas,
);
this.setState({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const personalDetailsPropTypes = PropTypes.shape({
});

const propTypes = {
/** Beta features list */
betas: PropTypes.arrayOf(PropTypes.string).isRequired,

/** Callback to inform parent modal of success */
onStepComplete: PropTypes.func.isRequired,

Expand Down Expand Up @@ -54,6 +57,7 @@ class IOUParticipantsRequest extends Component {
props.personalDetails,
'',
true,
props.betas,
);

this.state = {
Expand Down Expand Up @@ -125,6 +129,7 @@ class IOUParticipantsRequest extends Component {
this.props.personalDetails,
searchValue,
true,
this.props.betas,
);
this.setState({
searchValue,
Expand Down Expand Up @@ -153,5 +158,8 @@ export default compose(
reports: {
key: ONYXKEYS.COLLECTION.REPORT,
},
betas: {
key: ONYXKEYS.BETAS,
},
}),
)(IOUParticipantsRequest);
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const personalDetailsPropTypes = PropTypes.shape({
});

const propTypes = {
/** Beta features list */
betas: PropTypes.arrayOf(PropTypes.string).isRequired,

/** Callback to inform parent modal of success */
onStepComplete: PropTypes.func.isRequired,

Expand Down Expand Up @@ -78,6 +81,7 @@ class IOUParticipantsSplit extends Component {
'',
props.participants,
true,
props.betas,
);

this.state = {
Expand Down Expand Up @@ -178,6 +182,7 @@ class IOUParticipantsSplit extends Component {
isOptionInList ? prevState.searchValue : '',
newSelectedOptions,
true,
this.props.betas,
);
return {
recentReports,
Expand Down Expand Up @@ -213,6 +218,7 @@ class IOUParticipantsSplit extends Component {
searchValue,
[],
true,
this.props.betas,
);
this.setState({
searchValue,
Expand Down Expand Up @@ -253,5 +259,8 @@ export default compose(
reports: {
key: ONYXKEYS.COLLECTION.REPORT,
},
betas: {
key: ONYXKEYS.BETAS,
},
}),
)(IOUParticipantsSplit);

0 comments on commit 655730f

Please sign in to comment.