diff --git a/src/components/presentational/CardSource.js b/src/components/presentational/CardSource.js index 0bb3d2c..d4e6dce 100644 --- a/src/components/presentational/CardSource.js +++ b/src/components/presentational/CardSource.js @@ -5,13 +5,34 @@ import copy from '../../js/data/copy.json' const CardSource = ({ source, language, isLoading, error }) => { + function renderIconText(type) { + switch(type) { + case 'Eyewitness Testimony': + return 'visibility' + case 'Government Data': + return 'public' + case 'Satellite Imagery': + return 'satellite' + case 'Second-Hand Testimony': + return 'visibility_off' + case 'Video': + return 'videocam' + case 'Photo': + return 'photo' + default: + return 'help' + } + } + return (
{source.id}