react-crud-mobile 1.3.214 → 1.3.216

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.
@@ -1366,7 +1366,6 @@ function UIModal(_ref) {
1366
1366
  index = _useState2[0],
1367
1367
  setIndex = _useState2[1];
1368
1368
  //v1
1369
- console.log(modalVisible);
1370
1369
  var label = scope.getLabel();
1371
1370
  var theme = scope.getTheme();
1372
1371
  var headerStyle = Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
@@ -1408,19 +1407,6 @@ function UIModal(_ref) {
1408
1407
  color: color
1409
1408
  };
1410
1409
  var key = curr.name + "-" + index;
1411
- var Content = function Content() {
1412
- if (dialog != null && dialog.component) {
1413
- var Aux = dialog == null ? void 0 : dialog.component;
1414
- return /*#__PURE__*/jsx(Aux, {
1415
- crud: curr
1416
- }, curr.uuid);
1417
- }
1418
- return /*#__PURE__*/jsx(UIChildren, {
1419
- scope: scope,
1420
- crud: curr,
1421
- children: props.children
1422
- });
1423
- };
1424
1410
  var ModalContent = function ModalContent(_ref2) {
1425
1411
  var children = _ref2.children;
1426
1412
  var disableScroll = scope.part('disableScroll', false);
@@ -1462,12 +1448,27 @@ function UIModal(_ref) {
1462
1448
  });
1463
1449
  };
1464
1450
  var ModalInner = function ModalInner() {
1451
+ var Content = function Content() {
1452
+ if (dialog != null && dialog.component) {
1453
+ var Aux = dialog == null ? void 0 : dialog.component;
1454
+ return /*#__PURE__*/jsx(Aux, {
1455
+ crud: curr
1456
+ }, curr.uuid);
1457
+ }
1458
+ return /*#__PURE__*/jsx(UIChildren, {
1459
+ scope: scope,
1460
+ crud: curr,
1461
+ children: props.children
1462
+ });
1463
+ };
1464
+ var content = /*#__PURE__*/jsx(Content, {});
1465
1465
  if (original["transient"]) {
1466
1466
  return /*#__PURE__*/jsx(View, {
1467
1467
  style: style('modalSafe'),
1468
- children: /*#__PURE__*/jsx(Content, {})
1468
+ children: content
1469
1469
  });
1470
1470
  }
1471
+ console.log(content);
1471
1472
  return /*#__PURE__*/jsxs(Fragment, {
1472
1473
  children: [/*#__PURE__*/jsx(SafeAreaView, {
1473
1474
  style: style('modalTop')
@@ -1494,7 +1495,7 @@ function UIModal(_ref) {
1494
1495
  children: headerRight
1495
1496
  })]
1496
1497
  }), /*#__PURE__*/jsx(ModalContent, {
1497
- children: /*#__PURE__*/jsx(Content, {})
1498
+ children: content
1498
1499
  }), bottom]
1499
1500
  }), /*#__PURE__*/jsx(UIToast, {})]
1500
1501
  });