Skip to content

Commit

Permalink
Merge pull request #13323 from Expensify/alberto-timezone
Browse files Browse the repository at this point in the history
Do not display default placeholder for timezone selector
  • Loading branch information
puneetlath authored Dec 10, 2022
2 parents ed3e2dc + db082fc commit 10dd188
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/OptionsSelector/BaseOptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class BaseOptionsSelector extends Component {
value={this.props.value}
label={this.props.textInputLabel}
onChangeText={this.props.onChangeText}
placeholder={this.props.placeholderText || this.props.translate('optionsSelector.nameEmailOrPhoneNumber')}
placeholder={this.props.placeholderText}
onBlur={(e) => {
if (!this.props.shouldFocusOnSelectRow) {
return;
Expand Down
1 change: 1 addition & 0 deletions src/pages/NewChatPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ class NewChatPage extends Component {
shouldShowConfirmButton={this.props.isGroupChat}
confirmButtonText={this.props.translate('newChatPage.createGroup')}
onConfirmSelection={this.createGroup}
placeholderText={this.props.translate('optionsSelector.nameEmailOrPhoneNumber')}
/>
) : (
<FullScreenLoadingIndicator />
Expand Down
1 change: 1 addition & 0 deletions src/pages/SearchPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ class SearchPage extends Component {
hideSectionHeaders
showTitleTooltip
shouldShowOptions={didScreenTransitionEnd}
placeholderText={this.props.translate('optionsSelector.nameEmailOrPhoneNumber')}
/>
</View>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class IOUParticipantsRequest extends Component {
onSelectRow={this.addSingleParticipant}
onChangeText={this.updateOptionsWithSearchTerm}
headerMessage={headerMessage}
placeholderText={this.props.translate('optionsSelector.nameEmailOrPhoneNumber')}
boldStyle
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class IOUParticipantsSplit extends Component {
shouldShowConfirmButton
confirmButtonText={this.props.translate('common.next')}
onConfirmSelection={this.finalizeParticipants}
placeholderText={this.props.translate('optionsSelector.nameEmailOrPhoneNumber')}
/>
</View>
</>
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspace/WorkspaceInvitePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ class WorkspaceInvitePage extends React.Component {
hideSectionHeaders
boldStyle
shouldFocusOnSelectRow
placeholderText={this.props.translate('optionsSelector.nameEmailOrPhoneNumber')}
/>
) : (
<FullScreenLoadingIndicator />
Expand Down

0 comments on commit 10dd188

Please sign in to comment.