File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
apps/admin/src/skills-manager/components/bulk-editor/search-skill-input
libs/ui/lib/components/form/form-groups/form-input/input-select-react Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11import { ChangeEvent , FC , useMemo } from 'react'
22import { escapeRegExp } from 'lodash'
3- import { FilterOptionOption } from 'react-select/dist/declarations/src/filters'
43
5- import { InputSelectReact } from '~/libs/ui'
4+ import { InputSelectOption , InputSelectReact } from '~/libs/ui'
65
76import { mapSkillToSelectOption } from '../../../lib'
87import { StandardizedSkill } from '../../../services'
@@ -21,9 +20,9 @@ const SearchSkillInput: FC<SearchSkillInputProps> = props => {
2120 mapSkillToSelectOption ( props . skills )
2221 ) , [ props . skills ] )
2322
24- function filterOptions ( o : FilterOptionOption < any > , v : string ) : boolean {
23+ function filterOptions ( o : InputSelectOption , v : string ) : boolean {
2524 const normValue = normalize ( v )
26- const normLabel = normalize ( o . label )
25+ const normLabel = normalize ( o . label as string )
2726
2827 if ( v . length < 3 && normValue !== normLabel ) {
2928 return false
Original file line number Diff line number Diff line change 88 useRef ,
99} from 'react'
1010import { find } from 'lodash'
11- import { FilterOptionOption } from 'react-select/dist/declarations/src/filters'
1211import CreatableSelect from 'react-select/creatable'
1312import ReactSelect , { GroupBase , OptionsOrGroups } from 'react-select'
1413import classNames from 'classnames'
@@ -42,7 +41,7 @@ interface InputSelectReactProps {
4241 readonly onBlur ?: ( event : FocusEvent < HTMLInputElement > ) => void
4342 readonly openMenuOnClick ?: boolean
4443 readonly openMenuOnFocus ?: boolean
45- readonly filterOption ?: < T > ( option : FilterOptionOption < T > , value : string ) => boolean
44+ readonly filterOption ?: ( option : InputSelectOption , value : string ) => boolean
4645}
4746
4847/**
You can’t perform that action at this time.
0 commit comments