Rename 'Tag' to 'Flag' - which is more accurate

This commit is contained in:
Tom Raithel
2017-11-27 08:42:00 +01:00
parent 784a5d1be6
commit 80f6617754
5 changed files with 9 additions and 9 deletions

15
js/components/Flag.js Normal file
View File

@@ -0,0 +1,15 @@
import React from 'react';
export default function Flag({ item, short = false }) {
if (item.flag !== 'default') {
let name = item.flag.toUpperCase();
if (short === true) {
name = {
new: 'N',
changed: 'C',
}[item.flag];
}
return <span className={`flag flag--${item.flag}`}>{name}</span>;
}
return null;
}