From aeb76f2229a5cfbdc0f05f8aaaa419375f8c6d2d Mon Sep 17 00:00:00 2001 From: Chirag Arora Date: Wed, 26 Jul 2023 22:29:16 +0530 Subject: [PATCH] reapplying changes --- src/components/AddressSearch/index.js | 1 + src/components/OptionsSelector/BaseOptionsSelector.js | 1 + src/components/RoomNameInput/index.js | 1 + .../SelectionListRadio/BaseSelectionListRadio.js | 1 + src/pages/settings/Payments/AddDebitCardPage.js | 1 + src/pages/settings/Profile/DisplayNamePage.js | 2 ++ .../settings/Profile/PersonalDetails/AddressPage.js | 3 +++ .../settings/Profile/PersonalDetails/LegalNamePage.js | 2 ++ src/pages/tasks/NewTaskDetailsPage.js | 10 +++++----- src/pages/workspace/WorkspaceMembersPage.js | 1 + src/pages/workspace/WorkspaceSettingsPage.js | 1 + 11 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/components/AddressSearch/index.js b/src/components/AddressSearch/index.js index 795e45c6f892..e8a41ec35435 100644 --- a/src/components/AddressSearch/index.js +++ b/src/components/AddressSearch/index.js @@ -278,6 +278,7 @@ function AddressSearch(props) { } }, maxLength: props.maxInputLength, + spellCheck: false, }} styles={{ textInputContainer: [styles.flexColumn], diff --git a/src/components/OptionsSelector/BaseOptionsSelector.js b/src/components/OptionsSelector/BaseOptionsSelector.js index 0d05e8401cce..aef909f1d5c2 100755 --- a/src/components/OptionsSelector/BaseOptionsSelector.js +++ b/src/components/OptionsSelector/BaseOptionsSelector.js @@ -326,6 +326,7 @@ class BaseOptionsSelector extends Component { }} selectTextOnFocus blurOnSubmit={Boolean(this.state.allOptions.length)} + spellCheck={false} /> ); const optionsList = ( diff --git a/src/components/RoomNameInput/index.js b/src/components/RoomNameInput/index.js index 0acfde3dedcf..27b9d11c6d34 100644 --- a/src/components/RoomNameInput/index.js +++ b/src/components/RoomNameInput/index.js @@ -76,6 +76,7 @@ class RoomNameInput extends Component { onBlur={this.props.onBlur} autoFocus={this.props.autoFocus} maxLength={CONST.REPORT.MAX_ROOM_NAME_LENGTH} + spellCheck={false} /> ); } diff --git a/src/components/SelectionListRadio/BaseSelectionListRadio.js b/src/components/SelectionListRadio/BaseSelectionListRadio.js index be41b0e170fd..0d6218639d90 100644 --- a/src/components/SelectionListRadio/BaseSelectionListRadio.js +++ b/src/components/SelectionListRadio/BaseSelectionListRadio.js @@ -230,6 +230,7 @@ function BaseSelectionListRadio(props) { onChangeText={props.onChangeText} keyboardType={props.keyboardType} selectTextOnFocus + spellCheck={false} /> )} diff --git a/src/pages/settings/Payments/AddDebitCardPage.js b/src/pages/settings/Payments/AddDebitCardPage.js index 13da43710428..6cb979b633bd 100644 --- a/src/pages/settings/Payments/AddDebitCardPage.js +++ b/src/pages/settings/Payments/AddDebitCardPage.js @@ -120,6 +120,7 @@ function DebitCardPage(props) { accessibilityLabel={translate('addDebitCardPage.nameOnCard')} accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT} ref={(ref) => (nameOnCardRef.current = ref)} + spellCheck={false} /> @@ -105,6 +106,7 @@ function DisplayNamePage(props) { defaultValue={lodashGet(currentUserDetails, 'lastName', '')} maxLength={CONST.DISPLAY_NAME.MAX_LENGTH} autoCapitalize="words" + spellCheck={false} /> diff --git a/src/pages/settings/Profile/PersonalDetails/AddressPage.js b/src/pages/settings/Profile/PersonalDetails/AddressPage.js index c578e32d9e42..65c106a4e9aa 100644 --- a/src/pages/settings/Profile/PersonalDetails/AddressPage.js +++ b/src/pages/settings/Profile/PersonalDetails/AddressPage.js @@ -167,6 +167,7 @@ function AddressPage({privatePersonalDetails}) { accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT} defaultValue={street2 || ''} maxLength={CONST.FORM_CHARACTER_LIMIT} + spellCheck={false} /> @@ -192,6 +193,7 @@ function AddressPage({privatePersonalDetails}) { accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT} defaultValue={address.state || ''} maxLength={CONST.FORM_CHARACTER_LIMIT} + spellCheck={false} /> )} @@ -202,6 +204,7 @@ function AddressPage({privatePersonalDetails}) { accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT} defaultValue={address.city || ''} maxLength={CONST.FORM_CHARACTER_LIMIT} + spellCheck={false} /> @@ -107,6 +108,7 @@ function LegalNamePage(props) { accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT} defaultValue={legalLastName} maxLength={CONST.DISPLAY_NAME.MAX_LENGTH} + spellCheck={false} /> diff --git a/src/pages/tasks/NewTaskDetailsPage.js b/src/pages/tasks/NewTaskDetailsPage.js index 12bed608b88c..52b43a5c49d5 100644 --- a/src/pages/tasks/NewTaskDetailsPage.js +++ b/src/pages/tasks/NewTaskDetailsPage.js @@ -35,7 +35,7 @@ const defaultProps = { task: {}, }; -function NewTaskPage(props) { +function NewTaskDetailsPage(props) { const inputRef = useRef(); const [taskTitle, setTaskTitle] = useState(props.task.title); const [taskDescription, setTaskDescription] = useState(props.task.description || ''); @@ -121,9 +121,9 @@ function NewTaskPage(props) { ); } -NewTaskPage.displayName = 'NewTaskPage'; -NewTaskPage.propTypes = propTypes; -NewTaskPage.defaultProps = defaultProps; +NewTaskDetailsPage.displayName = 'NewTaskDetailsPage'; +NewTaskDetailsPage.propTypes = propTypes; +NewTaskDetailsPage.defaultProps = defaultProps; export default compose( withOnyx({ @@ -135,4 +135,4 @@ export default compose( }, }), withLocalize, -)(NewTaskPage); +)(NewTaskDetailsPage); diff --git a/src/pages/workspace/WorkspaceMembersPage.js b/src/pages/workspace/WorkspaceMembersPage.js index e758d738d964..5e9f80613698 100644 --- a/src/pages/workspace/WorkspaceMembersPage.js +++ b/src/pages/workspace/WorkspaceMembersPage.js @@ -453,6 +453,7 @@ function WorkspaceMembersPage(props) { onChangeText={setSearchValue} label={props.translate('optionsSelector.findMember')} accessibilityLabel={props.translate('optionsSelector.findMember')} + spellCheck={false} /> {data.length > 0 ? ( diff --git a/src/pages/workspace/WorkspaceSettingsPage.js b/src/pages/workspace/WorkspaceSettingsPage.js index 50875a17b735..815d64bce0a5 100644 --- a/src/pages/workspace/WorkspaceSettingsPage.js +++ b/src/pages/workspace/WorkspaceSettingsPage.js @@ -135,6 +135,7 @@ function WorkspaceSettingsPage(props) { containerStyles={[styles.mt4]} defaultValue={props.policy.name} maxLength={CONST.WORKSPACE_NAME_CHARACTER_LIMIT} + spellCheck={false} />