| author | ymh <ymh.work@gmail.com> |
| Tue, 04 Dec 2018 18:17:56 +0100 | |
| changeset 191 | 3f71ad81a5a9 |
| parent 174 | ac1a026edd58 |
| permissions | -rw-r--r-- |
| 174 | 1 |
import React from 'react'; |
| 165 | 2 |
|
| 174 | 3 |
export default ({ annotationCategories }) => ( |
4 |
<div className="protocol-summary"> |
|
5 |
{annotationCategories.map((category) => ( |
|
6 |
<div className="protocol-summary-category" key={category.key} > |
|
7 |
<span className="protocol-summary-category-name badge text-light" style={{ backgroundColor: category.color, fontSize: "1em" }} >{category.name}</span> |
|
8 |
<p className="text-primary">{category.description}</p> |
|
9 |
</div> |
|
10 |
))} |
|
11 |
</div> |
|
12 |
); |