Rename vis provisioning components for clarity

In preparation for #13310.
pull/13423/head
Christopher Henn 2019-04-15 14:54:19 -07:00
parent a85b77d723
commit e08457cde2
3 changed files with 9 additions and 9 deletions

View File

@ -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<Props, State> {
queries={this.queries}
fallbackNote={this.fallbackNote}
>
<QueryViewSwitcher
<RefreshingViewSwitcher
tables={tables}
viewID={viewID}
onZoom={onZoom}

View File

@ -8,7 +8,7 @@ import SingleStatTransform from 'src/shared/components/SingleStatTransform'
import TableGraphs from 'src/shared/components/tables/TableGraphs'
import DygraphContainer from 'src/shared/components/DygraphContainer'
import Histogram from 'src/shared/components/Histogram'
import HistogramTransform from 'src/shared/components/HistogramTransform'
import VisTableTransform from 'src/shared/components/VisTableTransform'
// Types
import {
@ -29,7 +29,7 @@ interface Props {
onZoom?: (range: TimeRange) => void
}
const QueryViewSwitcher: FunctionComponent<Props> = ({
const RefreshingViewSwitcher: FunctionComponent<Props> = ({
properties,
loading,
viewID,
@ -91,13 +91,13 @@ const QueryViewSwitcher: FunctionComponent<Props> = ({
)
case ViewType.Histogram:
return (
<HistogramTransform tables={tables}>
<VisTableTransform tables={tables}>
{table => <Histogram table={table} properties={properties} />}
</HistogramTransform>
</VisTableTransform>
)
default:
return <div />
}
}
export default QueryViewSwitcher
export default RefreshingViewSwitcher

View File

@ -13,10 +13,10 @@ interface Props {
children: (table: Table) => JSX.Element
}
const HistogramTransform: FunctionComponent<Props> = ({tables, children}) => {
const VisTableTransform: FunctionComponent<Props> = ({tables, children}) => {
const {table} = useMemo(() => toMinardTable(tables), [tables])
return children(table)
}
export default HistogramTransform
export default VisTableTransform