client/src/components/ProtocolSummary.js
author ymh <ymh.work@gmail.com>
Fri, 30 Nov 2018 10:53:15 +0100
changeset 183 f8f3af9e5c83
parent 174 ac1a026edd58
child 191 3f71ad81a5a9
permissions -rw-r--r--
Change the settings to avoid using Session authentication for rest framework as it raise exceptions in case client and backend are on the same domain On the filter, adapt to take into account new version of django_filters

import React from 'react';
import './ProtocolSummary.css'


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