import React from 'react'; import Datepicker from './datepicker' import SiteSwitcher from './site-switcher' import Filters from './filters' import VisitorGraph from './stats/graph/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 Realtime 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(Realtime, '#stats-container-top');