Merge remote-tracking branch 'jar0s/feature/radar-chart'
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user