From db7c26d0bfd446522492edd1234fd4f7021af8bd Mon Sep 17 00:00:00 2001 From: Alex P Date: Fri, 27 Jul 2018 16:35:52 -0700 Subject: [PATCH] Implement Panel component on a page --- .../components/DashboardsPageContents.tsx | 90 +++++++++---------- 1 file changed, 44 insertions(+), 46 deletions(-) diff --git a/ui/src/dashboards/components/DashboardsPageContents.tsx b/ui/src/dashboards/components/DashboardsPageContents.tsx index c09b14dfc..d9cd63136 100644 --- a/ui/src/dashboards/components/DashboardsPageContents.tsx +++ b/ui/src/dashboards/components/DashboardsPageContents.tsx @@ -8,6 +8,7 @@ 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' @@ -51,27 +52,30 @@ class DashboardsPageContents extends Component { } = this.props return ( - -
-
-
-
- {this.renderPanelHeading} -
- -
+ <> + +
+
+
+ + {this.renderPanelHeading} + + + +
-
- + + {this.renderImportOverlay} + ) } @@ -79,34 +83,28 @@ class DashboardsPageContents extends Component { const {onCreateDashboard} = this.props return ( - <> -
-

{this.panelTitle}

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