mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
pass loading to CardSource
This commit is contained in:
@@ -2,16 +2,17 @@ import React from 'react';
|
||||
|
||||
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;
|
||||
const CardSource = ({ source, language, isLoading }) => {
|
||||
const source_lang = copy[language].cardstack.source;
|
||||
if (!source) source = copy[language].cardstack.unknown_source;
|
||||
console.log(isLoading)
|
||||
|
||||
return (
|
||||
<div className="card-row card-cell source">
|
||||
<h4>{source_lang}: </h4>
|
||||
<p><small>{source}</small></p>
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<div className="card-row card-cell source">
|
||||
<h4>{source_lang}: </h4>
|
||||
<p><small>{source}</small></p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default CardSource;
|
||||
|
||||
Reference in New Issue
Block a user