import LinkCardItem from './LinkCardItem'; import {Card,Icon} from 'antd'; import isEqual from 'lodash/isEqual'; import * as mobx from 'mobx' class MLinkCard extends React.Component { shouldComponentUpdate(nextProps) { const _c = !isEqual(mobx.toJS(this.props.types), mobx.toJS(nextProps.types)); return _c || this.props.isAbc !== nextProps.isAbc } render() { const {types,isAbc,actions,user} = this.props; return (
{ types.map((type,i)=>{ const {prjbeans,img,color,letter,selected,typeName,prjtmpcount} = type; const icontype ="icon-base " +img; return (
{isAbc ? {letter} :
{typeName}{('(' + (prjtmpcount) + ')')}
}
{ prjbeans.map((obj,j)=>) }
) }) }
) } } export default MLinkCard