Basic team page

This commit is contained in:
John Lyon-Smith
2018-03-26 12:56:45 -07:00
parent 4c4f899c6a
commit ad32653633
5 changed files with 63 additions and 154 deletions

View File

@@ -7,12 +7,12 @@ import { sizeInfo, colorInfo, fontInfo } from './style'
@Radium
export class List extends Component {
static propTypes = {
data: PropTypes.array,
items: PropTypes.array,
render: PropTypes.func.isRequired,
}
render() {
const { data, render } = this.props
const { items, render } = this.props
return (
<Box
@@ -24,7 +24,7 @@ export class List extends Component {
fontFamily: fontInfo.family,
overflow: 'scroll',
}}>
{data ? data.map(render) : null}
{items ? items.map(render) : null}
</Box>
)
}