[Security Solution][Endpoint][Event Filters] Fixes missing spacers between event filters cards (#110282)
This commit is contained in:
parent
8eea9005f1
commit
079fc9ad19
|
@ -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>
|
||||
);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue