Authored by 于良

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

@@ -34,13 +34,15 @@ export default class User extends React.Component { @@ -34,13 +34,15 @@ export default class User extends React.Component {
34 34
35 static propTypes = { 35 static propTypes = {
36 36
37 - userInfo: ImmutablePropTypes.contains({  
38 - avatar: React.PropTypes.string,  
39 - backgroundImage:React.PropTypes.string,  
40 - nickName:React.PropTypes.string.isRequired,  
41 - sign: React.PropTypes.string,  
42 - msgCount:React.PropTypes.number,  
43 - }), 37 + userInfo: ImmutablePropTypes.listOf(
  38 + ImmutablePropTypes.contains({
  39 + avatar: React.PropTypes.string,
  40 + backgroundImage: React.PropTypes.string,
  41 + nickName: React.PropTypes.string.isRequired,
  42 + sign: React.PropTypes.string,
  43 + msgCount: React.PropTypes.string,
  44 + }),
  45 + ),
44 46
45 list: ImmutablePropTypes.listOf( 47 list: ImmutablePropTypes.listOf(
46 ImmutablePropTypes.contains({ 48 ImmutablePropTypes.contains({
@@ -319,7 +321,7 @@ export default class User extends React.Component { @@ -319,7 +321,7 @@ export default class User extends React.Component {
319 } 321 }
320 322
321 render() { 323 render() {
322 - let {userInfo, list, user, endReached, isRefreshing, isLoadingMore, isFetching} = this.props; 324 + let {userInfo, list, endReached, isRefreshing, isLoadingMore, isFetching} = this.props;
323 let dataSource = { 325 let dataSource = {
324 userInfo: userInfo.toArray(), 326 userInfo: userInfo.toArray(),
325 list: list.toArray(), 327 list: list.toArray(),