Created
September 22, 2021 03:38
-
-
Save alexismansilla/d4b3cb2debdf0ba9312cd3730838c709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Table dataSource={data}> | |
<ColumnGroup title="Name"> | |
<Column title="First Name" dataIndex="firstName" key="firstName" /> | |
<Column title="Last Name" dataIndex="lastName" key="lastName" /> | |
</ColumnGroup> | |
<Column title="Age" dataIndex="age" key="age" /> | |
<Column title="Address" dataIndex="address" key="address" /> | |
<Column | |
title="Tags" | |
dataIndex="tags" | |
key="tags" | |
render={tags => ( | |
<> | |
{tags.map(tag => ( | |
<Tag color="blue" key={tag}> | |
{tag} | |
</Tag> | |
))} | |
</> | |
)} | |
/> | |
<Column | |
title="Action" | |
key="action" | |
render={(text, record) => ( | |
<Space size="middle"> | |
<a>Invite {record.lastName}</a> | |
<a>Delete</a> | |
</Space> | |
)} | |
/> | |
</Table>, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment