mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Security Solution] [Endpoint] Display backbutton for artifact empty states (#122238)
* Display backbutton for empty states * Remove eui spacer when empty state
This commit is contained in:
parent
75ea37b32d
commit
a08da2e9ec
1 changed files with 25 additions and 4 deletions
|
@ -63,9 +63,15 @@ export const AdministrationListPage: FC<AdministrationListPageProps & CommonProp
|
|||
|
||||
const getTestId = useTestIdGenerator(otherProps['data-test-subj']);
|
||||
|
||||
return (
|
||||
<div {...otherProps}>
|
||||
{!hideHeader && (
|
||||
const pageHeader = useMemo(
|
||||
() =>
|
||||
hideHeader ? (
|
||||
<EuiFlexGroup direction="column" gutterSize="none" alignItems="flexStart">
|
||||
<EuiFlexItem grow={false}>
|
||||
{headerBackComponent && <>{headerBackComponent}</>}
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
) : (
|
||||
<>
|
||||
<EuiPageHeader
|
||||
pageTitle={header}
|
||||
|
@ -77,7 +83,22 @@ export const AdministrationListPage: FC<AdministrationListPageProps & CommonProp
|
|||
/>
|
||||
<EuiSpacer size="l" />
|
||||
</>
|
||||
)}
|
||||
),
|
||||
[
|
||||
actions,
|
||||
description,
|
||||
getTestId,
|
||||
hasBottomBorder,
|
||||
header,
|
||||
headerBackComponent,
|
||||
hideHeader,
|
||||
restrictWidth,
|
||||
]
|
||||
);
|
||||
|
||||
return (
|
||||
<div {...otherProps}>
|
||||
{pageHeader}
|
||||
|
||||
<EuiPageContent
|
||||
hasBorder={false}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue