mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
Copy, removing log, and adding PropTypes
This commit is contained in:
@@ -74,8 +74,6 @@ export default class Community extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
// console.log('Community Container', this.props);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<FlaggedAccounts {...this.props} />
|
||||
|
||||
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
import styles from './CommunityMenu.css';
|
||||
import t from 'coral-framework/services/i18n';
|
||||
import {Link} from 'react-router';
|
||||
import PropTypes from 'prop-types';
|
||||
import CountBadge from '../../../components/CountBadge';
|
||||
|
||||
const CommunityMenu = ({flaggedUsernamesCount = 0}) => {
|
||||
@@ -25,4 +26,8 @@ const CommunityMenu = ({flaggedUsernamesCount = 0}) => {
|
||||
);
|
||||
};
|
||||
|
||||
CommunityMenu.propTypes = {
|
||||
flaggedUsernamesCount: PropTypes.number,
|
||||
};
|
||||
|
||||
export default CommunityMenu;
|
||||
|
||||
@@ -848,7 +848,7 @@ type RootQuery {
|
||||
commentCount(query: CommentCountQuery!): Int
|
||||
|
||||
# Return the count of users satisfied by the query. Note that this edge is
|
||||
# expensive as it is not batched. Requires the `ADMIN` role.
|
||||
# expensive as it is not batched. This field is restricted.
|
||||
userCount(query: UserCountQuery!): Int
|
||||
|
||||
# The currently logged in user based on the request. Requires any logged in
|
||||
|
||||
Reference in New Issue
Block a user