From 9d1fad799d49c6064d90b442853438fd7580b156 Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Tue, 29 Jun 2021 21:10:57 -0400 Subject: [PATCH 1/2] Remove add data button from nav --- .../collapsible_nav.test.tsx.snap | 89 ------------------- .../chrome/ui/header/collapsible_nav.tsx | 10 --- 2 files changed, 99 deletions(-) diff --git a/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav.test.tsx.snap b/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav.test.tsx.snap index a653fbc5e40bd..9e890f5bce408 100644 --- a/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav.test.tsx.snap +++ b/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav.test.tsx.snap @@ -1917,95 +1917,6 @@ exports[`CollapsibleNav renders links grouped by category 1`] = ` /> - -
- - -
-
- - - - - -
-
-
-
-
diff --git a/src/core/public/chrome/ui/header/collapsible_nav.tsx b/src/core/public/chrome/ui/header/collapsible_nav.tsx index 2ce5cf2ee4933..a697f83cac1b0 100644 --- a/src/core/public/chrome/ui/header/collapsible_nav.tsx +++ b/src/core/public/chrome/ui/header/collapsible_nav.tsx @@ -325,16 +325,6 @@ export function CollapsibleNav({ - {/* Quick addition of that "ADD DATA" button everyone wants :) Feel free to remove though. */} - - {/* Span fakes the nav group into not being the first item and therefore adding a top border */} - - - - - - - ); } From 668df88baefc209527030a2c165b1293b1c50fe0 Mon Sep 17 00:00:00 2001 From: Michail Yasonik Date: Wed, 30 Jun 2021 00:46:13 -0500 Subject: [PATCH 2/2] remove unused imports --- src/core/public/chrome/ui/header/collapsible_nav.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/public/chrome/ui/header/collapsible_nav.tsx b/src/core/public/chrome/ui/header/collapsible_nav.tsx index a697f83cac1b0..eaddc6b94bd46 100644 --- a/src/core/public/chrome/ui/header/collapsible_nav.tsx +++ b/src/core/public/chrome/ui/header/collapsible_nav.tsx @@ -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';