Copy, removing log, and adding PropTypes

This commit is contained in:
Belen Curcio
2017-09-19 12:45:47 -03:00
parent bc5d348c98
commit a96d8c2b3c
3 changed files with 6 additions and 3 deletions
@@ -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;
+1 -1
View File
@@ -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