From 8d1121bfbf0a7a7c9f3331095816a922b3c6cd28 Mon Sep 17 00:00:00 2001 From: Getabalew Tesfaye Date: Thu, 22 Feb 2024 12:23:11 +0300 Subject: [PATCH 1/2] fix: add missing ListItem --- src/components/CategoryPicker/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/CategoryPicker/index.js b/src/components/CategoryPicker/index.js index 0e57bcf4db03..dfeb444f2922 100644 --- a/src/components/CategoryPicker/index.js +++ b/src/components/CategoryPicker/index.js @@ -9,6 +9,7 @@ import * as OptionsListUtils from '@libs/OptionsListUtils'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import {defaultProps, propTypes} from './categoryPickerPropTypes'; +import RadioListItem from "@components/SelectionList/RadioListItem"; function CategoryPicker({selectedCategory, policyCategories, policyRecentlyUsedCategories, onSubmit}) { const {translate} = useLocalize(); @@ -67,6 +68,7 @@ function CategoryPicker({selectedCategory, policyCategories, policyRecentlyUsedC textInputLabel={shouldShowTextInput && translate('common.search')} onChangeText={setSearchValue} onSelectRow={onSubmit} + ListItem={RadioListItem} initiallyFocusedOptionKey={selectedOptionKey} /> ); From b7d78691f60bbe0f3f37d8c8569875b0251bed00 Mon Sep 17 00:00:00 2001 From: Getabalew Tesfaye Date: Thu, 22 Feb 2024 14:28:57 +0300 Subject: [PATCH 2/2] fix: lint --- src/components/CategoryPicker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CategoryPicker/index.js b/src/components/CategoryPicker/index.js index dfeb444f2922..2374fc9e5d0c 100644 --- a/src/components/CategoryPicker/index.js +++ b/src/components/CategoryPicker/index.js @@ -3,13 +3,13 @@ import React, {useMemo} from 'react'; import {withOnyx} from 'react-native-onyx'; import _ from 'underscore'; import SelectionList from '@components/SelectionList'; +import RadioListItem from '@components/SelectionList/RadioListItem'; import useDebouncedState from '@hooks/useDebouncedState'; import useLocalize from '@hooks/useLocalize'; import * as OptionsListUtils from '@libs/OptionsListUtils'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import {defaultProps, propTypes} from './categoryPickerPropTypes'; -import RadioListItem from "@components/SelectionList/RadioListItem"; function CategoryPicker({selectedCategory, policyCategories, policyRecentlyUsedCategories, onSubmit}) { const {translate} = useLocalize();