eleven-solutions-common-website-unique-web 4.0.32 → 4.0.34
Sign up to get free protection for your applications and to get access to all the features.
@@ -270,16 +270,6 @@ const TaxonomyForm = () => {
|
|
270
270
|
? "Add SubType"
|
271
271
|
: editTaxonomyItem || editTempTaxonomyItem
|
272
272
|
? "Edit Values"
|
273
|
-
: "Add Values" }), _jsx("button", { onClick: handleCloseModal, className: "text-xl text-gray-600 dark:text-gray-400 h-6 w-6", children: "\u00D7" })] }), isAddingSubType ? (_jsxs(_Fragment, { children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Type" }), _jsx("input", { type: "text", value: subType, onChange: (e) => setSubType(e.target.value), placeholder: "Enter Type", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Code" }), _jsx("input", { type: "number", value: subCode, onChange: (e) => setSubCode(e.target.value), placeholder: "Enter Code", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Value" }), _jsx("input", { type: "text", value: subValue, onChange: (e) => setSubValue(e.target.value), placeholder: "Enter Value", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" })] })) : (_jsxs(_Fragment, { children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Code" }), _jsx("input", { type: "number", value: newCode, onChange: (e) => setNewCode(e.target.value), placeholder: "Enter Code", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Value" }), _jsx("input", { type: "text", value: newValue, onChange: (e) => setNewValue(e.target.value), placeholder: "Enter Value", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" })
|
274
|
-
// onClick={editTaxonomyItem ? handleEditTaxClick : handleAddClick}
|
275
|
-
onClick: isAddingSubType
|
276
|
-
? handleSubTypeClick
|
277
|
-
: editTaxonomyItem
|
278
|
-
? handleEditTaxClick
|
279
|
-
: handleAddClick, className: "px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600", children: isAddingSubType
|
280
|
-
? "Add SubType"
|
281
|
-
: editTaxonomyItem || editTempTaxonomyItem
|
282
|
-
? "Edit"
|
283
|
-
: "Add" })] })] }) })] }));
|
273
|
+
: "Add Values" }), _jsx("button", { onClick: handleCloseModal, className: "text-xl text-gray-600 dark:text-gray-400 h-6 w-6", children: "\u00D7" })] }), isAddingSubType ? (_jsxs(_Fragment, { children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Type" }), _jsx("input", { type: "text", value: subType, onChange: (e) => setSubType(e.target.value), placeholder: "Enter Type", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Code" }), _jsx("input", { type: "number", value: subCode, onChange: (e) => setSubCode(e.target.value), placeholder: "Enter Code", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Value" }), _jsx("input", { type: "text", value: subValue, onChange: (e) => setSubValue(e.target.value), placeholder: "Enter Value", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" })] })) : (_jsxs(_Fragment, { children: [_jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Code" }), _jsx("input", { type: "number", value: newCode, onChange: (e) => setNewCode(e.target.value), placeholder: "Enter Code", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsx("label", { className: "text-gray-900 dark:text-gray-200 font-semibold", children: "Value" }), _jsx("input", { type: "text", value: newValue, onChange: (e) => setNewValue(e.target.value), placeholder: "Enter Value", className: "w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md" }), _jsxs("div", { className: "flex space-x-4 justify-end", children: [_jsx("button", { onClick: handleCloseModal, className: "px-8 py-2.5 leading-5 bg-gray-300 rounded-md", children: "Cancel" }), _jsx("button", { onClick: editTaxonomyItem ? handleEditTaxClick : handleAddClick, className: "px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600", children: editTaxonomyItem || editTempTaxonomyItem ? "Edit" : "Add" })] })] }))] }) })] }));
|
284
274
|
};
|
285
275
|
export default TaxonomyForm;
|
package/package.json
CHANGED
@@ -793,35 +793,25 @@ const TaxonomyForm = () => {
|
|
793
793
|
placeholder="Enter Value"
|
794
794
|
className="w-full px-4 py-2 mt-2 mb-4 border border-gray-300 rounded-md"
|
795
795
|
/>
|
796
|
+
|
797
|
+
<div className="flex space-x-4 justify-end">
|
798
|
+
<button
|
799
|
+
onClick={handleCloseModal}
|
800
|
+
className="px-8 py-2.5 leading-5 bg-gray-300 rounded-md"
|
801
|
+
>
|
802
|
+
Cancel
|
803
|
+
</button>
|
804
|
+
<button
|
805
|
+
onClick={
|
806
|
+
editTaxonomyItem ? handleEditTaxClick : handleAddClick
|
807
|
+
}
|
808
|
+
className="px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600"
|
809
|
+
>
|
810
|
+
{editTaxonomyItem || editTempTaxonomyItem ? "Edit" : "Add"}
|
811
|
+
</button>
|
812
|
+
</div>
|
796
813
|
</>
|
797
814
|
)}
|
798
|
-
|
799
|
-
<div className="flex space-x-4 justify-end">
|
800
|
-
<button
|
801
|
-
onClick={handleCloseModal}
|
802
|
-
className="px-8 py-2.5 leading-5 bg-gray-300 rounded-md"
|
803
|
-
>
|
804
|
-
Cancel
|
805
|
-
</button>
|
806
|
-
<button
|
807
|
-
// onClick={editTaxonomyItem ? handleEditTaxClick : handleAddClick}
|
808
|
-
onClick={
|
809
|
-
isAddingSubType
|
810
|
-
? handleSubTypeClick
|
811
|
-
: editTaxonomyItem
|
812
|
-
? handleEditTaxClick
|
813
|
-
: handleAddClick
|
814
|
-
}
|
815
|
-
className="px-8 py-2.5 leading-5 text-white transition-colors duration-300 transform bg-blue-600 rounded-md hover:bg-blue-500 focus:outline-none focus:bg-gray-600"
|
816
|
-
>
|
817
|
-
{/* {editTaxonomyItem || editTempTaxonomyItem ? "Edit" : "Add"} */}
|
818
|
-
{isAddingSubType
|
819
|
-
? "Add SubType"
|
820
|
-
: editTaxonomyItem || editTempTaxonomyItem
|
821
|
-
? "Edit"
|
822
|
-
: "Add"}
|
823
|
-
</button>
|
824
|
-
</div>
|
825
815
|
</div>
|
826
816
|
</div>
|
827
817
|
</div>
|