import React from 'react'; import Datepicker from './datepicker' import SiteSwitcher from './site-switcher' import Filters from './filters' import CurrentVisitors from './stats/current-visitors' import VisitorGraph from './stats/visitor-graph' import Sources from './stats/sources' import Pages from './stats/pages' import Locations from './stats/locations'; import Devices from './stats/devices' import Conversions from './stats/conversions' import { withPinnedHeader } from './pinned-header-hoc'; class Historical extends React.Component { renderConversions() { if (this.props.site.hasGoals) { return (
) } return null } render() { const navClass = this.props.site.embedded ? 'relative' : 'sticky' return (
{ this.renderConversions() }
) } } export default withPinnedHeader(Historical, '#stats-container-top');