contentoh-components-library 21.4.81 → 21.4.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -35,8 +35,6 @@ var _close = _interopRequireDefault(require("../../../assets/images/Icons/close.
|
|
|
35
35
|
|
|
36
36
|
var _save = _interopRequireDefault(require("../../../assets/images/Icons/save.svg"));
|
|
37
37
|
|
|
38
|
-
var _Modal = require("../../organisms/Modal");
|
|
39
|
-
|
|
40
38
|
var _axios = _interopRequireDefault(require("axios"));
|
|
41
39
|
|
|
42
40
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -137,16 +135,6 @@ var EditGroup = function EditGroup(_ref) {
|
|
|
137
135
|
shouldClose = _useState20[0],
|
|
138
136
|
setShouldClose = _useState20[1];
|
|
139
137
|
|
|
140
|
-
var _useState21 = (0, _react.useState)({
|
|
141
|
-
show: false,
|
|
142
|
-
title: "Actualización completa",
|
|
143
|
-
message: "",
|
|
144
|
-
icon: "success"
|
|
145
|
-
}),
|
|
146
|
-
_useState22 = (0, _slicedToArray2.default)(_useState21, 2),
|
|
147
|
-
modalData = _useState22[0],
|
|
148
|
-
setModalData = _useState22[1];
|
|
149
|
-
|
|
150
138
|
var modalRef = (0, _react.useRef)();
|
|
151
139
|
(0, _react.useEffect)(function () {}, [groups]);
|
|
152
140
|
(0, _react.useEffect)(function () {
|
|
@@ -552,15 +540,7 @@ var EditGroup = function EditGroup(_ref) {
|
|
|
552
540
|
},
|
|
553
541
|
children: "+ Agregar Grupo"
|
|
554
542
|
})
|
|
555
|
-
})
|
|
556
|
-
onClickBtnDefault: function onClickBtnDefault() {
|
|
557
|
-
return setModalData(function (prev) {
|
|
558
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, prev), {}, {
|
|
559
|
-
show: false
|
|
560
|
-
});
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
}))]
|
|
543
|
+
})]
|
|
564
544
|
})
|
|
565
545
|
})
|
|
566
546
|
})
|
package/package.json
CHANGED
|
@@ -7,7 +7,6 @@ import trash from "../../../assets/images/Icons/trash.svg";
|
|
|
7
7
|
import edit from "../../../assets/images/Icons/edit.svg";
|
|
8
8
|
import close from "../../../assets/images/Icons/close.svg";
|
|
9
9
|
import save from "../../../assets/images/Icons/save.svg";
|
|
10
|
-
import { Modal } from "../../organisms/Modal";
|
|
11
10
|
import { Fade, Grow, Zoom, Backdrop } from "@mui/material";
|
|
12
11
|
import axios from "axios";
|
|
13
12
|
|
|
@@ -45,12 +44,6 @@ export const EditGroup = ({ token, show, onClose }) => {
|
|
|
45
44
|
const [currentEditIndex, setCurrentEditIndex] = useState(null);
|
|
46
45
|
const [inputValue, setInputValue] = useState([]);
|
|
47
46
|
const [shouldClose, setShouldClose] = useState(false);
|
|
48
|
-
const [modalData, setModalData] = useState({
|
|
49
|
-
show: false,
|
|
50
|
-
title: "Actualización completa",
|
|
51
|
-
message: "",
|
|
52
|
-
icon: "success",
|
|
53
|
-
});
|
|
54
47
|
|
|
55
48
|
const modalRef = useRef();
|
|
56
49
|
|
|
@@ -330,12 +323,6 @@ export const EditGroup = ({ token, show, onClose }) => {
|
|
|
330
323
|
+ Agregar Grupo
|
|
331
324
|
</Button>
|
|
332
325
|
</div>
|
|
333
|
-
<Modal
|
|
334
|
-
{...modalData}
|
|
335
|
-
onClickBtnDefault={() =>
|
|
336
|
-
setModalData((prev) => ({ ...prev, show: false }))
|
|
337
|
-
}
|
|
338
|
-
/>
|
|
339
326
|
</div>
|
|
340
327
|
</Container>
|
|
341
328
|
</Fade>
|