From f18f51ada955842b6ac0579c51aed344091a3028 Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 1 Aug 2018 16:42:17 -0700 Subject: [PATCH] Revert usage of panel components in page --- .../components/DashboardsPageContents.tsx | 90 ++++++++++--------- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/ui/src/dashboards/components/DashboardsPageContents.tsx b/ui/src/dashboards/components/DashboardsPageContents.tsx index d9cd63136..c09b14dfc 100644 --- a/ui/src/dashboards/components/DashboardsPageContents.tsx +++ b/ui/src/dashboards/components/DashboardsPageContents.tsx @@ -8,7 +8,6 @@ import SearchBar from 'src/hosts/components/SearchBar' import FancyScrollbar from 'src/shared/components/FancyScrollbar' import {ErrorHandling} from 'src/shared/decorators/errors' import OverlayTechnology from 'src/reusable_ui/components/overlays/OverlayTechnology' -import Panel from 'src/reusable_ui/components/panel/Panel' import {Dashboard} from 'src/types' import {Notification} from 'src/types/notifications' @@ -52,30 +51,27 @@ class DashboardsPageContents extends Component { } = this.props return ( - <> - -
-
-
- - {this.renderPanelHeading} - - - - + +
+
+
+
+ {this.renderPanelHeading} +
+ +
- - {this.renderImportOverlay} - +
+
) } @@ -83,28 +79,34 @@ class DashboardsPageContents extends Component { const {onCreateDashboard} = this.props return ( - - - - <> - - - - - + <> +
+

{this.panelTitle}

+
+ + + <> + + + + +
+
+ {this.renderImportOverlay} + ) }