diff --git a/src/components/OptionsSelector.js b/src/components/OptionsSelector.js index 0073e864c9de..916e41005459 100755 --- a/src/components/OptionsSelector.js +++ b/src/components/OptionsSelector.js @@ -95,12 +95,6 @@ const propTypes = { /** Text to show in the confirm button (only visible if multiple options are selected) */ confirmButtonText: PropTypes.string, - /** True if the maximum number of options have been selected, false otherwise. */ - maxParticipantsReached: PropTypes.bool, - - /** Text to show if the maximum number of participants are reached */ - maxParticipantsReachedMessage: PropTypes.string, - /** Function to execute if the confirm button is pressed */ onConfirmSelection: PropTypes.func, @@ -138,8 +132,6 @@ const defaultProps = { autoFocus: true, shouldShowConfirmButton: false, confirmButtonText: undefined, - maxParticipantsReached: false, - maxParticipantsReachedMessage: undefined, onConfirmSelection: () => {}, shouldTextInputAppearBelowOptions: false, shouldShowOfflineMessage: false, @@ -332,10 +324,6 @@ class OptionsSelector extends Component { ? this.props.translate('common.confirm') : this.props.confirmButtonText; const shouldShowDefaultConfirmButton = !this.props.footerContent && defaultConfirmButtonText; - const defaultMaxParticipantsReachedMessage = _.isUndefined(this.props.maxParticipantsReachedMessage) - ? this.props.translate('common.maxParticipantsReached', {count: this.props.selectedOptions.length}) - : this.props.maxParticipantsReachedMessage; - const shouldShowMaxParticipantsMessage = this.props.maxParticipantsReached && defaultMaxParticipantsReachedMessage; const textInput = ( this.textInput = el} @@ -404,12 +392,7 @@ class OptionsSelector extends Component { {shouldShowFooter && ( - {shouldShowMaxParticipantsMessage && ( - - {defaultMaxParticipantsReachedMessage} - - )} - {!shouldShowMaxParticipantsMessage && this.props.shouldShowOfflineMessage && this.props.network.isOffline && ( + {this.props.shouldShowOfflineMessage && this.props.network.isOffline && ( {this.props.translate('session.offlineMessage')} diff --git a/src/pages/NewChatPage.js b/src/pages/NewChatPage.js index 3f95c0e6e9e0..b6cc4cdc3a2b 100755 --- a/src/pages/NewChatPage.js +++ b/src/pages/NewChatPage.js @@ -255,7 +255,6 @@ class NewChatPage extends Component { shouldFocusOnSelectRow={this.props.isGroupChat} shouldShowConfirmButton={this.props.isGroupChat} confirmButtonText={this.props.translate('newChatPage.createGroup')} - maxParticipantsReached={maxParticipantsReached} onConfirmSelection={this.props.isGroupChat ? this.createGroup : this.createChat} /> )} diff --git a/src/pages/iou/IOUCurrencySelection.js b/src/pages/iou/IOUCurrencySelection.js index a8dfad9ff257..3ea4072c4e8b 100644 --- a/src/pages/iou/IOUCurrencySelection.js +++ b/src/pages/iou/IOUCurrencySelection.js @@ -74,7 +74,6 @@ class IOUCurrencySelection extends Component { /** * Returns the sections needed for the OptionsSelector * - * @param {Boolean} maxParticipantsReached * @returns {Array} */ getSections() { diff --git a/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js b/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js index aa9b5a2fed36..ca503ce24f6b 100755 --- a/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js +++ b/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js @@ -229,7 +229,6 @@ class IOUParticipantsSplit extends Component { shouldDelayFocus shouldShowConfirmButton confirmButtonText={this.props.translate('common.next')} - maxParticipantsReached={maxParticipantsReached} onConfirmSelection={this.finalizeParticipants} />