Initial commit. Functional approach

This commit is contained in:
2024-04-02 10:30:42 +01:00
parent 982c9d6a12
commit b9bf00acc2
19 changed files with 1225 additions and 26 deletions

View File

@@ -0,0 +1,20 @@
import React from 'react';
const makeInputJSON = (dictArgs) => {
const {id, name, value = null, textLabel = null, type = null, placeholder = null, stepValue = null, minValue = null, options = null, onChange = null} = dictArgs;
return {
id: id,
name: name,
value: value,
textLabel: textLabel,
type: type,
placeholder: placeholder,
stepValue: stepValue,
minValue: minValue,
options: options,
onChange: onChange
};
};
const methods = { makeInputJSON }
export default methods;