[Security Solution][Endpoint][Event Filters] Fixes missing spacers between event filters cards (#110282)

This commit is contained in:
Candace Park 2021-08-29 22:17:46 -04:00 committed by GitHub
parent 8eea9005f1
commit 079fc9ad19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
@ -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>
);
}
);