Skip to content

Commit 50737bf

Browse files
committed
fix: reuse the typing from react select
1 parent d603f8b commit 50737bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Shared/Components/SelectPicker/SelectPicker.component.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import { SelectPickerOptionType } from './type'
1313

1414
export interface SelectPickerProps
1515
extends Pick<
16-
ReactSelectProps,
16+
ReactSelectProps<SelectPickerOptionType>,
17+
| 'options'
18+
| 'value'
1719
| 'isMulti'
1820
| 'onChange'
1921
| 'isSearchable'
@@ -30,8 +32,6 @@ export interface SelectPickerProps
3032
> {
3133
icon?: ReactElement
3234
error?: ReactNode
33-
options: SelectPickerOptionType[]
34-
value?: SelectPickerOptionType
3535
renderMenuListFooter?: () => ReactNode
3636
}
3737

0 commit comments

Comments
 (0)