-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Make NetSuiteCustomFieldMappingPicker use new SelectionList #72740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7939340
d1e857a
d00c003
69efb44
bc6f125
4df870f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| import React from 'react'; | ||
| import {View} from 'react-native'; | ||
| import FormHelpMessage from '@components/FormHelpMessage'; | ||
| import SelectionList from '@components/SelectionListWithSections'; | ||
| import RadioListItem from '@components/SelectionListWithSections/RadioListItem'; | ||
| import SelectionList from '@components/SelectionList'; | ||
| import RadioListItem from '@components/SelectionList/ListItem/RadioListItem'; | ||
| import useLocalize from '@hooks/useLocalize'; | ||
| import useThemeStyles from '@hooks/useThemeStyles'; | ||
| import CONST from '@src/CONST'; | ||
|
|
@@ -36,12 +36,12 @@ function NetSuiteCustomFieldMappingPicker({value, errorText, onInputChange}: Net | |
| return ( | ||
| <> | ||
| <SelectionList | ||
| sections={[{data: selectionData}]} | ||
| data={selectionData} | ||
| onSelectRow={(selected) => { | ||
| onInputChange?.(selected.value); | ||
| }} | ||
| ListItem={RadioListItem} | ||
| initiallyFocusedOptionKey={value ?? CONST.INTEGRATION_ENTITY_MAP_TYPES.TAG} | ||
| initiallyFocusedItemKey={value ?? CONST.INTEGRATION_ENTITY_MAP_TYPES.TAG} | ||
| shouldSingleExecuteRowSelect | ||
| shouldUpdateFocusedIndex | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we remove
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This prop is not needed. Selecting an item in the component makes the SelectionList close in every use case
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The alike regression shouldn't happen as the page always closes after an item selection. In the component that migration caused the issue (the one you mentioned), it turned out not to be the case. If you have any doubts, I would appreciate you testing it in detail |
||
| /> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it related to this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is. It's a fix for a navigation issue that occurred after item selection from the migrated component. Previously, instead of closing the modal screen after the selection, the user was navigated to a new one, as visible in the video:
Screen.Recording.2025-10-28.at.12.43.02.mov