Skip to content

Commit

Permalink
Use EuiSmallFilterButton
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Aug 1, 2024
1 parent be4c398 commit 901d9a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions public/components/common/options_filter/options_filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
EuiPopover,
EuiPopoverTitle,
EuiFieldSearch,
EuiFilterButton,
EuiSmallFilterButton,
EuiPopoverFooter,
EuiFlexGroup,
EuiFlexItem,
Expand Down Expand Up @@ -73,14 +73,14 @@ export const OptionsFilter = <T extends string | number = string>({
return (
<EuiPopover
button={
<EuiFilterButton
<EuiSmallFilterButton
iconType="arrowDown"
onClick={handleButtonClick}
isSelected={isPopoverOpen}
{...(value.length > 0 ? { hasActiveFilters: true, numActiveFilters: value.length } : {})}
>
{name}
</EuiFilterButton>
</EuiSmallFilterButton>
}
isOpen={isPopoverOpen}
closePopover={closePopover}
Expand Down
6 changes: 3 additions & 3 deletions public/components/status_filter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
EuiPopover,
EuiPopoverTitle,
EuiFilterGroup,
EuiFilterButton,
EuiSmallFilterButton,
EuiSelectable,
EuiSelectableOption,
EuiIcon,
Expand Down Expand Up @@ -66,7 +66,7 @@ export const StatusFilter = ({ onUpdateFilters, options, loading }: Props) => {
);

const button = (
<EuiFilterButton
<EuiSmallFilterButton
iconType="arrowDown"
onClick={onButtonClick}
isSelected={isPopoverOpen}
Expand All @@ -76,7 +76,7 @@ export const StatusFilter = ({ onUpdateFilters, options, loading }: Props) => {
isLoading={loading}
>
Status
</EuiFilterButton>
</EuiSmallFilterButton>
);

return (
Expand Down

0 comments on commit 901d9a7

Please sign in to comment.