Merge remote-tracking branch 'jar0s/feature/radar-chart'

This commit is contained in:
Bastian Ike
2022-01-07 13:25:05 +01:00
28 changed files with 1238 additions and 46 deletions

View File

@@ -1,8 +1,6 @@
import React from "react";
import { FlagType } from "../../model";
import "./flag.scss";
export type FlagType = "new" | "changed" | "default";
interface ItemFlag {
flag: FlagType;
}
@@ -16,7 +14,7 @@ export default function Flag({
}) {
const ucFirst = (s: string) => s.charAt(0).toUpperCase() + s.slice(1);
if (item.flag !== "default") {
if (item.flag !== FlagType.default) {
let name = item.flag.toUpperCase();
let title = ucFirst(item.flag);
if (short === true) {