First stab at the radar chart

This commit is contained in:
Jarosław Marek
2021-04-28 00:33:49 +12:00
parent e8381eb332
commit ad4c8475f5
13 changed files with 745 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import './flag.scss';
import {FlagType} from "../../model";
import {blipFlags} from "../../config";
interface ItemFlag {
flag: FlagType;
@@ -9,7 +10,7 @@ interface ItemFlag {
export default function Flag({ item, short = false }: { item: ItemFlag; short?: boolean }) {
const ucFirst = (s: string) => s.charAt(0).toUpperCase() + s.slice(1);
if (item.flag !== 'default') {
if (item.flag !== blipFlags.default.name) {
let name = item.flag.toUpperCase();
let title = ucFirst(item.flag);
if (short === true) {