All components use getCategoryColor

This commit is contained in:
Franc Camps-Febrer
2018-12-03 14:50:38 +00:00
parent 0a6ba78389
commit b7c73ab9bd
6 changed files with 10 additions and 19 deletions

View File

@@ -1,10 +1,10 @@
import React from 'react';
const CardCategory = ({ categoryTitle, categoryLabel, colorType }) => (
const CardCategory = ({ categoryTitle, categoryLabel, color }) => (
<div className="event-card-section category">
<h4>{categoryTitle}</h4>
<p>
<span className='color-category' style={{ background: colorType }}/>
<span className='color-category' style={{ background: color }}/>
{categoryLabel}
</p>
</div>