Skip to content

Commit

Permalink
Remove add data button from nav (#103810) (#104962)
Browse files Browse the repository at this point in the history
* Remove add data button from nav

* remove unused imports

Co-authored-by: Michail Yasonik <[email protected]>

Co-authored-by: Michail Yasonik <[email protected]>
  • Loading branch information
snide and Michail Yasonik authored Jul 9, 2021
1 parent 7d90bc3 commit 1650821
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 101 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions src/core/public/chrome/ui/header/collapsible_nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ import {
EuiListGroupItem,
EuiShowFor,
EuiCollapsibleNavProps,
EuiButton,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
import { groupBy, sortBy } from 'lodash';
import React, { Fragment, useRef } from 'react';
import useObservable from 'react-use/lib/useObservable';
Expand Down Expand Up @@ -325,16 +323,6 @@ export function CollapsibleNav({
</EuiCollapsibleNavGroup>
</EuiShowFor>
</EuiFlexItem>
{/* Quick addition of that "ADD DATA" button everyone wants :) Feel free to remove though. */}
<EuiFlexItem grow={false}>
{/* Span fakes the nav group into not being the first item and therefore adding a top border */}
<span />
<EuiCollapsibleNavGroup>
<EuiButton fill fullWidth iconType="plusInCircleFilled">
<FormattedMessage id="core.ui.primaryNavSection.addDataBtn" defaultMessage="Add Data" />
</EuiButton>
</EuiCollapsibleNavGroup>
</EuiFlexItem>
</EuiCollapsibleNav>
);
}

0 comments on commit 1650821

Please sign in to comment.