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 17, 2024
1 parent 124c9b2 commit 48d33b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions public/pages/Channels/components/ChannelControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import {
EuiCompressedFieldSearch,
EuiFilterButton,
EuiSmallFilterButton,
EuiFilterGroup,
EuiFilterSelectItem,
EuiFlexGroup,
Expand Down Expand Up @@ -109,13 +109,13 @@ export const ChannelControls = (props: ChannelControlsProps) => {
<EuiFilterGroup>
<EuiPopover
button={
<EuiFilterButton
<EuiSmallFilterButton
iconType="arrowDown"
grow={false}
onClick={() => setIsStatePopoverOpen(!isStatePopoverOpen)}
>
{isItemSelected(stateItems) ? <b>Status</b> : 'Status'}
</EuiFilterButton>
</EuiSmallFilterButton>
}
isOpen={isStatePopoverOpen}
closePopover={() => setIsStatePopoverOpen(false)}
Expand All @@ -138,13 +138,13 @@ export const ChannelControls = (props: ChannelControlsProps) => {
</EuiPopover>
<EuiPopover
button={
<EuiFilterButton
<EuiSmallFilterButton
iconType="arrowDown"
grow={false}
onClick={() => setIsTypePopoverOpen(!isTypePopoverOpen)}
>
{isItemSelected(typeItems) ? <b>Type</b> : 'Type'}
</EuiFilterButton>
</EuiSmallFilterButton>
}
isOpen={isTypePopoverOpen}
closePopover={() => setIsTypePopoverOpen(false)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import {
EuiCompressedFieldSearch,
EuiFilterButton,
EuiSmallFilterButton,
EuiFilterGroup,
EuiFilterSelectItem,
EuiFlexGroup,
Expand Down Expand Up @@ -77,7 +77,7 @@ export const SendersTableControls = (props: SendersTableControlsProps) => {
<EuiFilterGroup>
<EuiPopover
button={
<EuiFilterButton
<EuiSmallFilterButton
iconType="arrowDown"
grow={false}
onClick={() =>
Expand All @@ -89,7 +89,7 @@ export const SendersTableControls = (props: SendersTableControlsProps) => {
) : (
'Encryption method'
)}
</EuiFilterButton>
</EuiSmallFilterButton>
}
isOpen={isEncryptionPopoverOpen}
closePopover={() => setIsEncryptionPopoverOpen(false)}
Expand Down

0 comments on commit 48d33b4

Please sign in to comment.