File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Shared/Components/SelectPicker Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { ComponentSizeType } from '@Shared/constants'
2
- import { SelectPickerProps } from './type'
2
+ import { StylesConfig } from 'react-select'
3
+ import { SelectPickerOptionType , SelectPickerProps } from './type'
3
4
4
- const getMenuWidthFromSize = ( menuSize : SelectPickerProps [ 'menuSize' ] ) => {
5
+ const getMenuWidthFromSize = ( menuSize : SelectPickerProps [ 'menuSize' ] ) : string => {
5
6
switch ( menuSize ) {
6
7
case ComponentSizeType . medium :
7
8
return '125%'
@@ -17,7 +18,7 @@ export const getCommonSelectStyle = ({
17
18
error,
18
19
size,
19
20
menuSize,
20
- } : Pick < SelectPickerProps , 'error' | 'size' | 'menuSize' > ) => ( {
21
+ } : Pick < SelectPickerProps , 'error' | 'size' | 'menuSize' > ) : StylesConfig < SelectPickerOptionType > => ( {
21
22
container : ( base , state ) => ( {
22
23
...base ,
23
24
...( state . isDisabled && {
You can’t perform that action at this time.
0 commit comments