File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/Shared/Components/SelectPicker Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<
58
58
type MenuListFooterConfigType =
59
59
| {
60
60
type : 'text'
61
- value : string
61
+ /**
62
+ * String is preferred for text type
63
+ */
64
+ value : ReactNode
62
65
buttonProps ?: never
63
66
}
64
67
| {
@@ -162,7 +165,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
162
165
Partial <
163
166
Pick <
164
167
SelectProps < OptionValue , IsMulti > ,
165
- | 'menuListFooterConfig'
166
168
| 'shouldRenderCustomOptions'
167
169
| 'renderCustomOptions'
168
170
| 'icon'
@@ -183,6 +185,10 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
183
185
>
184
186
> &
185
187
Omit < FormFieldWrapperProps , 'children' > & {
188
+ /**
189
+ * Config for the footer at the bottom of menu list. It is sticky by default
190
+ */
191
+ menuListFooterConfig ?: MenuListFooterConfigType
186
192
/**
187
193
* Custom selected options count for use cases like filters
188
194
*/
You can’t perform that action at this time.
0 commit comments