PersonCardList -> CardList + refactoring
This commit is contained in:
1 parent
e76d55c0a7
commit
6a87513703
4 files changed
+25
-12
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import React from 'react'
|
||||
|
||||
export const CardList = props => (
|
||||
<div className="CardList">
|
||||
<style jsx>{`
|
||||
.CardList {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
|
||||
justify-content: space-between;
|
||||
}
|
||||
`}</style>
|
||||
|
||||
{props.items.map(
|
||||
(item, index) => props.renderItem(item, index)
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
Reference in new issue
Block a user