contentoh-components-library 21.4.82 → 21.4.84

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.
@@ -130,21 +130,10 @@ var EditGroup = function EditGroup(_ref) {
130
130
  inputValue = _useState18[0],
131
131
  setInputValue = _useState18[1];
132
132
 
133
- var _useState19 = (0, _react.useState)(false),
134
- _useState20 = (0, _slicedToArray2.default)(_useState19, 2),
135
- shouldClose = _useState20[0],
136
- setShouldClose = _useState20[1];
137
-
138
- var modalRef = (0, _react.useRef)();
139
133
  (0, _react.useEffect)(function () {}, [groups]);
140
134
  (0, _react.useEffect)(function () {
141
135
  loadData();
142
136
  }, []);
143
- (0, _react.useEffect)(function () {
144
- if (shouldClose) {
145
- onClose && onClose();
146
- }
147
- }, [shouldClose, onClose]);
148
137
 
149
138
  var loadData = /*#__PURE__*/function () {
150
139
  var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -452,13 +441,10 @@ var EditGroup = function EditGroup(_ref) {
452
441
  backgroundColor: "transparent",
453
442
  zIndex: 10
454
443
  },
455
- onClick: onClose,
456
444
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Fade, {
457
445
  in: show,
458
446
  timeout: 400,
459
447
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
460
- ref: modalRef,
461
- open: show,
462
448
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
463
449
  className: "contentModal",
464
450
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.4.82",
3
+ "version": "21.4.84",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -43,9 +43,6 @@ export const EditGroup = ({ token, show, onClose }) => {
43
43
  const [newGroup, setNewGroup] = useState(false);
44
44
  const [currentEditIndex, setCurrentEditIndex] = useState(null);
45
45
  const [inputValue, setInputValue] = useState([]);
46
- const [shouldClose, setShouldClose] = useState(false);
47
-
48
- const modalRef = useRef();
49
46
 
50
47
  useEffect(() => {}, [groups]);
51
48
 
@@ -53,12 +50,6 @@ export const EditGroup = ({ token, show, onClose }) => {
53
50
  loadData();
54
51
  }, []);
55
52
 
56
- useEffect(() => {
57
- if (shouldClose) {
58
- onClose && onClose();
59
- }
60
- }, [shouldClose, onClose]);
61
-
62
53
  const loadData = async () => {
63
54
  try {
64
55
  const response = await axios.post(
@@ -243,10 +234,9 @@ export const EditGroup = ({ token, show, onClose }) => {
243
234
  backgroundColor: "transparent",
244
235
  zIndex: 10,
245
236
  }}
246
- onClick={onClose}
247
237
  >
248
238
  <Fade in={show} timeout={400}>
249
- <Container ref={modalRef} open={show}>
239
+ <Container>
250
240
  <div className={`contentModal`}>
251
241
  <div className="header">
252
242
  <h2 className="title-edit">Editar grupos</h2>