+ {Object.entries(inputData)
+ .filter(([, value]) =>
+ isNITR ? SHOW.NITR.includes(value.show) : SHOW.NON_NITR.includes(value.show),
+ )
+ .map(([key, value], index, array) => {
+ let gridCols;
+ if (array.length <= 4) {
+ gridCols = 'span 4';
+ } else if (index === array.length - 1 && index % 2 === 0) {
+ gridCols = '2 / 4';
+ } else {
+ gridCols = 'span 2';
+ }
- {isNITR ? (
- <>
-
- {Object.entries(inputData)
- .filter(([, value]) => SHOW.NITR.includes(value.show))
- .map(([key, value], index, array) => {
- let gridCols;
- if (array.length <= 4) {
- gridCols = 'span 4';
- } else if (index === array.length - 1 && index % 2 === 0) {
- gridCols = '2 / 4';
- } else {
- gridCols = 'span 2';
- }
-
- return (
-
- setInputValue(key, e.target.value)}
- onBlur={onBlur}
- />
-
- );
- })}
-
+ return (
+
+ setInputValue(key, e.target.value)}
+ onBlur={onBlur}
+ />
+
+ );
+ })}
+
-