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.
@@ -1375,7 +1375,6 @@ function UIModal(_ref) {
1375
1375
  index = _useState2[0],
1376
1376
  setIndex = _useState2[1];
1377
1377
  //v1
1378
- console.log(modalVisible);
1379
1378
  var label = scope.getLabel();
1380
1379
  var theme = scope.getTheme();
1381
1380
  var headerStyle = reactCrudUtils.Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
@@ -1417,19 +1416,6 @@ function UIModal(_ref) {
1417
1416
  color: color
1418
1417
  };
1419
1418
  var key = curr.name + "-" + index;
1420
- var Content = function Content() {
1421
- if (dialog != null && dialog.component) {
1422
- var Aux = dialog == null ? void 0 : dialog.component;
1423
- return /*#__PURE__*/jsxRuntime.jsx(Aux, {
1424
- crud: curr
1425
- }, curr.uuid);
1426
- }
1427
- return /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1428
- scope: scope,
1429
- crud: curr,
1430
- children: props.children
1431
- });
1432
- };
1433
1419
  var ModalContent = function ModalContent(_ref2) {
1434
1420
  var children = _ref2.children;
1435
1421
  var disableScroll = scope.part('disableScroll', false);
@@ -1471,12 +1457,27 @@ function UIModal(_ref) {
1471
1457
  });
1472
1458
  };
1473
1459
  var ModalInner = function ModalInner() {
1460
+ var Content = function Content() {
1461
+ if (dialog != null && dialog.component) {
1462
+ var Aux = dialog == null ? void 0 : dialog.component;
1463
+ return /*#__PURE__*/jsxRuntime.jsx(Aux, {
1464
+ crud: curr
1465
+ }, curr.uuid);
1466
+ }
1467
+ return /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1468
+ scope: scope,
1469
+ crud: curr,
1470
+ children: props.children
1471
+ });
1472
+ };
1473
+ var content = /*#__PURE__*/jsxRuntime.jsx(Content, {});
1474
1474
  if (original["transient"]) {
1475
1475
  return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1476
1476
  style: style('modalSafe'),
1477
- children: /*#__PURE__*/jsxRuntime.jsx(Content, {})
1477
+ children: content
1478
1478
  });
1479
1479
  }
1480
+ console.log(content);
1480
1481
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1481
1482
  children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.SafeAreaView, {
1482
1483
  style: style('modalTop')
@@ -1503,7 +1504,7 @@ function UIModal(_ref) {
1503
1504
  children: headerRight
1504
1505
  })]
1505
1506
  }), /*#__PURE__*/jsxRuntime.jsx(ModalContent, {
1506
- children: /*#__PURE__*/jsxRuntime.jsx(Content, {})
1507
+ children: content
1507
1508
  }), bottom]
1508
1509
  }), /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
1509
1510
  });