Skip to content

Commit 4580cbe

Browse files
committed
fix: styling and typing for menuListFooterConfig
1 parent 2466569 commit 4580cbe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Shared/Components/SelectPicker/selectPicker.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.select-picker {
22
&__menu-list-footer-button {
3-
&--secondary {
4-
button {
3+
&--border-less {
4+
button, a {
55
justify-content: flex-start;
66
}
77
}

src/Shared/Components/SelectPicker/type.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import type {} from 'react-select/base'
2525
import { TooltipProps } from '@Common/Tooltip/types'
2626
import { ResizableTagTextAreaProps } from '@Common/CustomTagSelector'
2727
import { FormFieldWrapperProps } from '../FormFieldWrapper/types'
28-
import { ButtonProps, ButtonVariantType } from '../Button'
28+
import { ButtonComponentType, ButtonProps, ButtonVariantType } from '../Button'
2929

3030
export interface SelectPickerOptionType<OptionValue = string | number> extends OptionType<OptionValue, ReactNode> {
3131
/**
@@ -55,7 +55,7 @@ type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<
5555
GroupBase<SelectPickerOptionType<OptionValue>>
5656
>
5757

58-
export type MenuListFooterConfigType =
58+
type MenuListFooterConfigType =
5959
| {
6060
type: 'text'
6161
value: string
@@ -65,8 +65,8 @@ export type MenuListFooterConfigType =
6565
type: 'button'
6666
value?: never
6767
buttonProps: {
68-
variant: ButtonVariantType.primary | ButtonVariantType.secondary
69-
} & Omit<ButtonProps, 'size' | 'fullWidth' | 'icon' | 'endIcon' | 'variant'>
68+
variant: ButtonVariantType.primary | ButtonVariantType.borderLess
69+
} & Omit<ButtonProps<ButtonComponentType>, 'size' | 'fullWidth' | 'icon' | 'endIcon' | 'variant' | 'style'>
7070
}
7171

7272
declare module 'react-select/base' {

0 commit comments

Comments
 (0)