From 87937e8bc3c7d05cb2175d1d663b6a54be3105f4 Mon Sep 17 00:00:00 2001 From: Hunter Trujillo Date: Thu, 16 Feb 2017 15:15:21 -0700 Subject: [PATCH] Move and refactor DashboardHeader component to dashboards/components --- ui/src/{shared => dashboards}/components/DashboardHeader.js | 0 ui/src/dashboards/containers/DashboardPage.js | 2 +- ui/src/hosts/containers/HostPage.js | 2 +- ui/src/kubernetes/components/KubernetesDashboard.js | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename ui/src/{shared => dashboards}/components/DashboardHeader.js (100%) diff --git a/ui/src/shared/components/DashboardHeader.js b/ui/src/dashboards/components/DashboardHeader.js similarity index 100% rename from ui/src/shared/components/DashboardHeader.js rename to ui/src/dashboards/components/DashboardHeader.js diff --git a/ui/src/dashboards/containers/DashboardPage.js b/ui/src/dashboards/containers/DashboardPage.js index bf3706b5a6..ef0adc9ac8 100644 --- a/ui/src/dashboards/containers/DashboardPage.js +++ b/ui/src/dashboards/containers/DashboardPage.js @@ -3,7 +3,7 @@ import {Link} from 'react-router'; import _ from 'lodash'; import LayoutRenderer from 'shared/components/LayoutRenderer'; -import DashboardHeader from 'shared/components/DashboardHeader'; +import DashboardHeader from 'src/dashboards/components/DashboardHeader'; import timeRanges from 'hson!../../shared/data/timeRanges.hson'; import {getDashboards} from '../apis'; diff --git a/ui/src/hosts/containers/HostPage.js b/ui/src/hosts/containers/HostPage.js index 96b5c2634b..4c18f36e70 100644 --- a/ui/src/hosts/containers/HostPage.js +++ b/ui/src/hosts/containers/HostPage.js @@ -5,7 +5,7 @@ import _ from 'lodash' import classnames from 'classnames'; import LayoutRenderer from 'shared/components/LayoutRenderer'; -import DashboardHeader from 'shared/components/DashboardHeader'; +import DashboardHeader from 'src/dashboards/components/DashboardHeader'; import timeRanges from 'hson!../../shared/data/timeRanges.hson'; import {getMappings, getAppsForHosts, getMeasurementsForHost, getAllHosts} from 'src/hosts/apis'; import {fetchLayouts} from 'shared/apis'; diff --git a/ui/src/kubernetes/components/KubernetesDashboard.js b/ui/src/kubernetes/components/KubernetesDashboard.js index 3f7a533677..c9b1c55d1d 100644 --- a/ui/src/kubernetes/components/KubernetesDashboard.js +++ b/ui/src/kubernetes/components/KubernetesDashboard.js @@ -1,6 +1,6 @@ import React, {PropTypes} from 'react'; import LayoutRenderer from 'shared/components/LayoutRenderer'; -import DashboardHeader from 'shared/components/DashboardHeader'; +import DashboardHeader from 'src/dashboards/components/DashboardHeader'; import timeRanges from 'hson!../../shared/data/timeRanges.hson'; export const KubernetesPage = React.createClass({