Skip to content

Commit

Permalink
fix: update SelectorFooter to use the right props
Browse files Browse the repository at this point in the history
  • Loading branch information
tkajtoch committed May 1, 2024
1 parent 5bac3bd commit 789f16f
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,19 @@
*/

import React from 'react';
import {
EuiButton,
EuiButtonEmpty,
EuiFlexGroup,
EuiFlexItem,
EuiListGroupProps,
EuiPanel,
} from '@elastic/eui';
import { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiPanel } from '@elastic/eui';
import { getRouterLinkProps } from '@kbn/router-utils';
import { DiscoverEsqlUrlProps } from '../../../hooks/use_esql';
import { createAllLogsItem } from '../utils';
import { showAllLogsLabel, tryEsql } from '../constants';

type SelectorFooterProps = EuiListGroupProps;
import { EuiFlexGroupProps } from '@elastic/eui/src/components/flex/flex_group';

interface ShowAllLogsProps {
isSelected: boolean;
onClick(): void;
}

export const SelectorFooter = (props: SelectorFooterProps) => {
export const SelectorFooter = (props: Partial<EuiFlexGroupProps>) => {
return (
<EuiPanel paddingSize="s" hasShadow={false} data-test-subj="dataSourceSelectorSearchFooter">
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center" {...props} />
Expand Down

0 comments on commit 789f16f

Please sign in to comment.