Skip to content

Commit

Permalink
made all landings big
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Mar 31, 2022
1 parent 73446a1 commit 36c7fb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ export const SecuritySolutionTemplateWrapper: React.FC<SecuritySolutionPageWrapp
);

const userHasSecuritySolutionVisible = useKibana().services.application.capabilities.siem.show;
const showEmptyState = useShowPagesWithEmptyView();
const emptyStateProps = showEmptyState ? NO_DATA_PAGE_TEMPLATE_PROPS : {};

/*
* StyledKibanaPageTemplate is a styled EuiPageTemplate. Security solution currently passes the header
Expand All @@ -99,11 +97,8 @@ export const SecuritySolutionTemplateWrapper: React.FC<SecuritySolutionPageWrapp
solutionNav={solutionNav}
restrictWidth={false}
template="default"
{...emptyStateProps}
>
{showEmptyState ? (
children
) : (

<>
<GlobalKQLHeader />
<EuiPanel
Expand All @@ -115,7 +110,6 @@ export const SecuritySolutionTemplateWrapper: React.FC<SecuritySolutionPageWrapp
{children}
</EuiPanel>
</>
)}
</StyledKibanaPageTemplate>
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const isPageNameWithEmptyView = (currentName: string) => {
SecurityPageName.network,
SecurityPageName.timelines,
SecurityPageName.overview,
SecurityPageName.landing,
];
return pageNamesWithEmptyView.includes(currentName);
};
Expand Down

0 comments on commit 36c7fb6

Please sign in to comment.