11import { Str } from 'expensify-common' ;
22import React , { useState } from 'react' ;
3- import SingleSelectListItem from '@components/SelectionList/ListItem/SingleSelectListItem ' ;
3+ import RadioListItem from '@components/SelectionList/ListItem/RadioListItem ' ;
44import SelectionListWithSections from '@components/SelectionList/SelectionListWithSections' ;
55import { useCurrencyListActions , useCurrencyListState } from '@hooks/useCurrencyList' ;
66import useLocalize from '@hooks/useLocalize' ;
7- import useThemeStyles from '@hooks/useThemeStyles' ;
87import getMatchScore from '@libs/getMatchScore' ;
98import { isEmptyObject } from '@src/types/utils/EmptyObject' ;
109import type { CurrencyListItem , CurrencySelectionListProps } from './types' ;
@@ -23,7 +22,6 @@ function CurrencySelectionList({
2322 const { getCurrencySymbol} = useCurrencyListActions ( ) ;
2423 const [ searchValue , setSearchValue ] = useState ( '' ) ;
2524 const { translate} = useLocalize ( ) ;
26- const styles = useThemeStyles ( ) ;
2725 const getUnselectedOptions = ( options : CurrencyListItem [ ] ) => options . filter ( ( option ) => ! option . isSelected ) ;
2826
2927 const currencyOptions : CurrencyListItem [ ] = Object . entries ( currencyList ) . reduce ( ( acc , [ currencyCode , currencyInfo ] ) => {
@@ -103,11 +101,8 @@ function CurrencySelectionList({
103101 // eslint-disable-next-line react/jsx-props-no-spreading
104102 { ...restProps }
105103 sections = { sections }
106- ListItem = { SingleSelectListItem }
104+ ListItem = { RadioListItem }
107105 onSelectRow = { onSelect }
108- style = { {
109- listItemWrapperStyle : styles . optionRow ,
110- } }
111106 textInputOptions = { textInputOptions }
112107 shouldShowTextInput = { ! ! searchInputLabel }
113108 shouldSingleExecuteRowSelect
0 commit comments