From e08457cde202ebda8efcf594c5a64b908fe36919 Mon Sep 17 00:00:00 2001 From: Christopher Henn Date: Mon, 15 Apr 2019 14:54:19 -0700 Subject: [PATCH] Rename vis provisioning components for clarity In preparation for #13310. --- ui/src/shared/components/RefreshingView.tsx | 4 ++-- ...ueryViewSwitcher.tsx => RefreshingViewSwitcher.tsx} | 10 +++++----- .../{HistogramTransform.tsx => VisTableTransform.tsx} | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) rename ui/src/shared/components/{QueryViewSwitcher.tsx => RefreshingViewSwitcher.tsx} (91%) rename ui/src/shared/components/{HistogramTransform.tsx => VisTableTransform.tsx} (77%) diff --git a/ui/src/shared/components/RefreshingView.tsx b/ui/src/shared/components/RefreshingView.tsx index 2ec0e0c4bd..ad082766af 100644 --- a/ui/src/shared/components/RefreshingView.tsx +++ b/ui/src/shared/components/RefreshingView.tsx @@ -6,7 +6,7 @@ import _ from 'lodash' // Components import TimeSeries from 'src/shared/components/TimeSeries' import EmptyQueryView from 'src/shared/components/EmptyQueryView' -import QueryViewSwitcher from 'src/shared/components/QueryViewSwitcher' +import RefreshingViewSwitcher from 'src/shared/components/RefreshingViewSwitcher' // Utils import {GlobalAutoRefresher} from 'src/utils/AutoRefresher' @@ -97,7 +97,7 @@ class RefreshingView extends PureComponent { queries={this.queries} fallbackNote={this.fallbackNote} > - void } -const QueryViewSwitcher: FunctionComponent = ({ +const RefreshingViewSwitcher: FunctionComponent = ({ properties, loading, viewID, @@ -91,13 +91,13 @@ const QueryViewSwitcher: FunctionComponent = ({ ) case ViewType.Histogram: return ( - + {table => } - + ) default: return
} } -export default QueryViewSwitcher +export default RefreshingViewSwitcher diff --git a/ui/src/shared/components/HistogramTransform.tsx b/ui/src/shared/components/VisTableTransform.tsx similarity index 77% rename from ui/src/shared/components/HistogramTransform.tsx rename to ui/src/shared/components/VisTableTransform.tsx index 90d887bc35..1ab2ff0632 100644 --- a/ui/src/shared/components/HistogramTransform.tsx +++ b/ui/src/shared/components/VisTableTransform.tsx @@ -13,10 +13,10 @@ interface Props { children: (table: Table) => JSX.Element } -const HistogramTransform: FunctionComponent = ({tables, children}) => { +const VisTableTransform: FunctionComponent = ({tables, children}) => { const {table} = useMemo(() => toMinardTable(tables), [tables]) return children(table) } -export default HistogramTransform +export default VisTableTransform