Implement activity tracking for flagged accounts

This commit is contained in:
Chi Vinh Le
2018-01-24 23:31:31 +01:00
parent d101989ebd
commit 1fc07e8649
9 changed files with 217 additions and 27 deletions
+4 -2
View File
@@ -15,6 +15,7 @@ const CoralHeader = ({
showShortcuts = () => {},
auth,
root,
data,
}) => {
return (
<div className={styles.headerWrapper}>
@@ -31,7 +32,7 @@ const CoralHeader = ({
activeClassName={styles.active}
>
{t('configure.moderate')}
<ModerationIndicator root={root} />
<ModerationIndicator root={root} data={data} />
</IndexLink>
)}
<Link
@@ -50,7 +51,7 @@ const CoralHeader = ({
activeClassName={styles.active}
>
{t('configure.community')}
<CommunityIndicator root={root} />
<CommunityIndicator root={root} data={data} />
</Link>
{can(auth.user, 'UPDATE_CONFIG') && (
@@ -119,6 +120,7 @@ CoralHeader.propTypes = {
showShortcuts: PropTypes.func,
handleLogout: PropTypes.func.isRequired,
root: PropTypes.object.isRequired,
data: PropTypes.object.isRequired,
};
export default CoralHeader;