Merge pull request #902 from mandaputtra/feature/895-add-number-online-on-realtime-page

implement realtime current users
This commit is contained in:
Mike Cao 2022-01-07 09:49:39 -08:00 committed by GitHub
commit 884dee06a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ import React from 'react';
import { FormattedMessage } from 'react-intl';
import PageHeader from '../layout/PageHeader';
import DropDown from '../common/DropDown';
import ActiveUsers from './ActiveUsers';
import MetricCard from './MetricCard';
import styles from './RealtimeHeader.module.css';
@ -24,6 +25,9 @@ export default function RealtimeHeader({ websites, data, websiteId, onSelect })
<div>
<FormattedMessage id="label.realtime" defaultMessage="Realtime" />
</div>
<div>
<ActiveUsers className={styles.active} websiteId={websiteId} />
</div>
<DropDown value={websiteId} options={options} onChange={onSelect} />
</PageHeader>
<div className={styles.metrics}>