Skip to content

Commit 25593d8

Browse files
committed
chore: select picker loading prop removed
1 parent bb845d1 commit 25593d8

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ const SelectPicker = <OptionValue, IsMulti extends boolean>({
221221
borderRadiusConfig,
222222
labelTippyCustomizedConfig,
223223
labelTooltipConfig,
224-
shouldShowLoadingMessage = true,
225224
hideFormFieldInfo,
226225
...props
227226
}: SelectPickerProps<OptionValue, IsMulti>) => {
@@ -333,12 +332,7 @@ const SelectPicker = <OptionValue, IsMulti extends boolean>({
333332
return null
334333
}
335334

336-
const renderLoadingMessage = () => {
337-
if (shouldShowLoadingMessage) {
338-
return <p className="m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8 dc__loading-dots">Loading</p>
339-
}
340-
return null
341-
}
335+
const renderLoadingMessage = () => <p className="m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8 dc__loading-dots">Loading</p>
342336

343337
const renderDisabledTippy = (children: ReactElement) => (
344338
<Tippy content={disabledTippyContent} placement="top" className="default-tt" arrow={false}>

src/Shared/Components/SelectPicker/type.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
277277
* @default true
278278
*/
279279
shouldShowNoOptionsMessage?: boolean
280-
/**
281-
* If true, the loading message is shown when loading
282-
*
283-
* @default false
284-
*/
285-
shouldShowLoadingMessage?: boolean
286280
/**
287281
* If true, the menu list and the dropdown indicator are hidden. Suitable for use cases like multi-inputs
288282
*

0 commit comments

Comments
 (0)