react-crud-mobile 1.3.351 → 1.3.353

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.351",
3
+ "version": "1.3.353",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native v1",
6
6
  "main": "dist/index.js",
@@ -309,6 +309,7 @@ export default function UIElement(props: ElementType) {
309
309
  };
310
310
 
311
311
  const isShowInner = () => {
312
+ if (scope.isType('icon')) return false;
312
313
  if (hasChildren()) {
313
314
  return false;
314
315
  }
@@ -380,15 +381,6 @@ export default function UIElement(props: ElementType) {
380
381
  )}
381
382
  </UIButton>
382
383
  )}
383
- {scope.is('type', 'icon') && (
384
- <UIIcon
385
- {...defaultsUI}
386
- onClick={onClick}
387
- variant={scope.attr('variant', 'outlined')}
388
- >
389
- {scope.getDisplayValue()}
390
- </UIIcon>
391
- )}
392
384
  {scope.is('type', 'link') && (
393
385
  <UILink
394
386
  {...defaultsUI}
@@ -553,6 +545,16 @@ export default function UIElement(props: ElementType) {
553
545
  <UIView {...props} scope={scope} crud={crud} />
554
546
  )}
555
547
 
548
+ {scope.is('type', 'icon') && (
549
+ <UIIcon
550
+ {...defaultsUI}
551
+ onClick={onClick}
552
+ variant={scope.attr('variant', 'outlined')}
553
+ >
554
+ {scope.getDisplayValue()}
555
+ </UIIcon>
556
+ )}
557
+
556
558
  {isShowChild() && (
557
559
  <UIChildren
558
560
  {...props}