client/src/components/ProtocolSummary.js
author ymh <ymh.work@gmail.com>
Thu, 29 Jul 2021 16:46:20 +0200
changeset 207 c39d91bd16af
parent 191 3f71ad81a5a9
permissions -rw-r--r--
update dependencies and create new version

import React from 'react';

export default ({ annotationCategories }) => (
  <div className="protocol-summary">
  {annotationCategories.map((category) => (
    <div className="protocol-summary-category" key={category.key} >
      <span className="protocol-summary-category-name badge text-light" style={{ backgroundColor: category.color, fontSize: "1em" }} >{category.name}</span>
      <p className="text-primary">{category.description}</p>
    </div>
  ))}
  </div>
);