analytics/assets/js/dashboard/stats/sources/index.js
Uku Taht 8ca08d8177
Improvements for Source: Google (#287)
* Extract referrers report

* Use new sourcs report in realtime

* Show appropriate messages for error conditions
2020-08-17 15:13:30 +03:00

15 lines
416 B
JavaScript

import React from 'react';
import SearchTerms from './search-terms'
import SourceList from './source-list'
import ReferrerList from './referrer-list'
export default function Sources(props) {
if (props.query.filters.source === 'Google') {
return <SearchTerms {...props} />
} else if (props.query.filters.source) {
return <ReferrerList {...props} />
} else {
return <SourceList {...props} />
}
}