Add cells to card and tidy up

This commit is contained in:
Franc Camps-Febrer
2018-12-06 14:08:47 +00:00
parent 7c707ababf
commit d64a085fb2
12 changed files with 89 additions and 67 deletions

View File

@@ -4,10 +4,11 @@ import copy from '../../js/data/copy.json';
const CardSource = ({ source, language }) => {
const source_lang = copy[language].cardstack.source;
if (!source) source = copy[language].cardstack.unknown_source;
return (
<div className="card-cell source">
<h4>{source_lang}</h4>
<div className="card-row card-cell source">
<h4>{source_lang}: </h4>
<p>{source}</p>
</div>
);