Skip to content

Commit

Permalink
[Security Solution][Endpoint][Event Filters] Fixes missing spacers be…
Browse files Browse the repository at this point in the history
…tween event filters cards (elastic#110282)
  • Loading branch information
parkiino authored and kibanamachine committed Aug 30, 2021
1 parent 0e22329 commit 4280b09
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
} from '@elastic/eui';
import { SecurityPageName } from '../../../common/constants';
import { SpyRoute } from '../../common/utils/route/spy_routes';
import { useTestIdGenerator } from './hooks/use_test_id_generator';

interface AdministrationListPageProps {
title: React.ReactNode;
Expand Down Expand Up @@ -45,21 +46,23 @@ export const AdministrationListPage: FC<AdministrationListPageProps & CommonProp
return <span data-test-subj="header-panel-subtitle">{subtitle}</span>;
}, [subtitle]);

const getTestId = useTestIdGenerator(otherProps['data-test-subj']);

return (
<>
<div {...otherProps}>
<EuiPageHeader
pageTitle={header}
description={description}
bottomBorder={true}
rightSideItems={[actions]}
restrictWidth={false}
{...otherProps}
data-test-subj={getTestId('header')}
/>
<EuiSpacer size="l" />
{children}

<SpyRoute pageName={SecurityPageName.administration} />
</>
</div>
);
}
);
Expand Down

0 comments on commit 4280b09

Please sign in to comment.