mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
Showing the indicators
This commit is contained in:
@@ -35,7 +35,7 @@ const CoralHeader = ({
|
||||
to="/admin/moderate"
|
||||
activeClassName={styles.active}>
|
||||
{t('configure.moderate')}
|
||||
{(root.premodCount !== 0 || root.reportedCount !== 0) && <Indicator />}
|
||||
{(root.premodCount || root.reportedCount) && <Indicator />}
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
@@ -53,7 +53,7 @@ const CoralHeader = ({
|
||||
to="/admin/community"
|
||||
activeClassName={styles.active}>
|
||||
{t('configure.community')}
|
||||
{root.flaggedUsernamesCount !== 0 && <Indicator />}
|
||||
{root.flaggedUsernamesCount && <Indicator />}
|
||||
</Link>
|
||||
|
||||
{
|
||||
|
||||
@@ -94,7 +94,7 @@ export default class Community extends Component {
|
||||
render() {
|
||||
const {searchValue} = this.state;
|
||||
const tab = this.getTabContent(searchValue, this.props);
|
||||
const {root: {flaggedUsernamesCount = 0}} = this.props;
|
||||
const {root: {flaggedUsernamesCount}} = this.props;
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user