add MasodlagosErtekek.tsx

This commit is contained in:
2023-08-14 15:01:18 +02:00
parent 4df3f5c834
commit 95c363ec90
11 changed files with 369 additions and 27 deletions
+1 -3
View File
@@ -2,10 +2,8 @@ import React from "react";
import {Faj, FajLabel} from "../domain-models/faj";
import {Modifier} from "../domain-models/tulajdonsag";
import {SignedNumberToText} from "./Helpers";
export function SignedNumberToText(val: number) : string {
return val > 0 ? '+'+val : val.toString()
}
function fajiModositoText(faj: Faj, szamolas: (f: Faj) => number) : string {
const mod = szamolas(faj)