import React from 'react'; import Datepicker from './datepicker' import DatepickerArrows from './datepicker-arrows' import SiteSwitcher from './site-switcher' import Filters from './filters' import VisitorGraph from './stats/visitor-graph' import Sources from './stats/sources' import Pages from './stats/pages' import Countries from './stats/countries' 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');