Skip to content

Commit

Permalink
[Ingest Manager] remove requirements component (#70462)
Browse files Browse the repository at this point in the history
* remove requirements component

* fix ts error

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
neptunian and elasticmachine authored Jul 1, 2020
1 parent ba48a9f commit 80ae564
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { EuiFlexGroup, EuiFlexItem, EuiHorizontalRule, EuiSpacer } from '@elastic/eui';
import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui';
import React from 'react';
import styled from 'styled-components';
import { DEFAULT_PANEL, DetailParams } from '.';
import { PackageInfo } from '../../../../types';
import { AssetsFacetGroup } from '../../components/assets_facet_group';
import { Requirements } from '../../components/requirements';
import { CenterColumn, LeftColumn, RightColumn } from './layout';
import { OverviewPanel } from './overview_panel';
import { SideNavLinks } from './side_nav_links';
Expand Down Expand Up @@ -73,17 +72,11 @@ export function ContentPanel(props: ContentPanelProps) {

type RightColumnContentProps = PackageInfo & Pick<DetailParams, 'panel'>;
function RightColumnContent(props: RightColumnContentProps) {
const { assets, requirement, panel } = props;
const { assets, panel } = props;
switch (panel) {
case 'overview':
return (
<EuiFlexGroup direction="column" gutterSize="none">
<EuiFlexItem grow={false}>
<Requirements requirements={requirement} />
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiHorizontalRule margin="xl" />
</EuiFlexItem>
<EuiFlexItem grow={false}>
<AssetsFacetGroup assets={assets} />
</EuiFlexItem>
Expand Down

0 comments on commit 80ae564

Please sign in to comment.