client/src/components/ProtocolSummary.js
author ymh <ymh.work@gmail.com>
Tue, 04 Dec 2018 18:17:56 +0100
changeset 191 3f71ad81a5a9
parent 174 ac1a026edd58
permissions -rw-r--r--
reorganize scss to better us the bootstrap imports

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>
);