import React, { Component } from 'react'; import { List, Card } from 'antd'; import moment from 'moment'; import { connect } from 'dva'; import AvatarList from '../AvatarList'; import styles from './index.less'; import { ModalState } from '../../model'; import { ListItemDataType } from '../../data'; @connect(({ BLOCK_NAME_CAMEL_CASE }: { BLOCK_NAME_CAMEL_CASE: ModalState }) => ({ list: BLOCK_NAME_CAMEL_CASE.list, })) class Projects extends Component> { render() { const { list } = this.props; return ( className={styles.coverCardList} rowKey="id" grid={{ gutter: 24, xxl: 3, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }} dataSource={list} renderItem={item => ( } > {item.title}} description={item.subDescription} />
{moment(item.updatedAt).fromNow()}
{item.members.map(member => ( ))}
)} /> ); } } export default Projects;