level 3 maybe?

This commit is contained in:
2023-09-23 22:43:27 +02:00
parent a991521899
commit e53e193e7d
8 changed files with 47 additions and 38 deletions
+1 -9
View File
@@ -6,13 +6,8 @@ import {
KepzettsegId,
TolvajKepzettsegList,
} from "../domain-models/kepzettsegek";
import {arraySetN} from "../util";
function arraySetN<T>(array: T[], n: number, elem: T): T[] {
if (array.length < n || n < 0) {
return array
}
return [...array.slice(0, n), elem, ...array.slice(n+1)]
}
function InternalKepzettsegekSelector(props: {
title: string,
@@ -39,8 +34,6 @@ function InternalKepzettsegekSelector(props: {
})
}
console.log(preCalculated)
return <>
<div className='row'>
<div className='col-lg-2 col-md-12'>
@@ -61,7 +54,6 @@ function InternalKepzettsegekSelector(props: {
}
function KarakterKepzettsegek (props: {
availableKepzettsegList: Kepzettseg[],
numberOfKepzettsegek: number