Authored by 于良

个人中心警告修复 review by 阿瑟

... ... @@ -34,13 +34,15 @@ export default class User extends React.Component {
static propTypes = {
userInfo: ImmutablePropTypes.contains({
avatar: React.PropTypes.string,
backgroundImage:React.PropTypes.string,
nickName:React.PropTypes.string.isRequired,
sign: React.PropTypes.string,
msgCount:React.PropTypes.number,
}),
userInfo: ImmutablePropTypes.listOf(
ImmutablePropTypes.contains({
avatar: React.PropTypes.string,
backgroundImage: React.PropTypes.string,
nickName: React.PropTypes.string.isRequired,
sign: React.PropTypes.string,
msgCount: React.PropTypes.string,
}),
),
list: ImmutablePropTypes.listOf(
ImmutablePropTypes.contains({
... ... @@ -319,7 +321,7 @@ export default class User extends React.Component {
}
render() {
let {userInfo, list, user, endReached, isRefreshing, isLoadingMore, isFetching} = this.props;
let {userInfo, list, endReached, isRefreshing, isLoadingMore, isFetching} = this.props;
let dataSource = {
userInfo: userInfo.toArray(),
list: list.toArray(),
... ...