@fto-consult/expo-ui 2.45.3 → 2.45.5
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,4 +1,4 @@
|
|
|
1
|
-
import {StyleSheet
|
|
1
|
+
import {StyleSheet} from 'react-native';
|
|
2
2
|
import DrawerLayout from './DrawerLayout';
|
|
3
3
|
import {isIos} from "$cplatform";
|
|
4
4
|
import React from "$react";
|
|
@@ -6,7 +6,7 @@ import PropTypes from "prop-types";
|
|
|
6
6
|
import {defaultObj,isObj,isNonNullString} from "$utils";
|
|
7
7
|
import theme,{Colors,flattenStyle} from "$theme";
|
|
8
8
|
import DrawerItems from './DrawerItems';
|
|
9
|
-
import {isDesktopMedia,getCurrentMedia} from "$cplatform/dimensions";
|
|
9
|
+
import Dimensions,{isDesktopMedia,getCurrentMedia} from "$cplatform/dimensions";
|
|
10
10
|
import {open,close} from "$epreloader";
|
|
11
11
|
import {DRAWER_POSITIONS,DRAWER_TYPES,MINIMIZED_WIDTH,getDrawerWidth,MINIMIZED_ICON_SIZE,ICON_SIZE} from './utils';
|
|
12
12
|
import Icon,{MENU_ICON} from "$ecomponents/Icon";
|
|
@@ -31,7 +31,7 @@ export default function DatabaseStatisticScreen ({withScreen,fetchDataProps,tabl
|
|
|
31
31
|
}
|
|
32
32
|
if(table.databaseStatistic === false || table.databaseStatistics === false) return null;
|
|
33
33
|
const chartAllowedPerm = defaultStr(table.chartAllowedPerm);
|
|
34
|
-
if(chartAllowedPerm && !Auth.isAllowedFromStr(chartAllowedPerm || !Auth.isTableDataAllowed({table:tableName}))) return null;
|
|
34
|
+
if((chartAllowedPerm && !Auth.isAllowedFromStr(chartAllowedPerm)) || (!Auth.isTableDataAllowed({table:tableName}))) return null;
|
|
35
35
|
content.push(<Cell elevation = {5} withSurface mobileSize={12} desktopSize={3} tabletSize={4} {...contentProps} key = {index} >
|
|
36
36
|
<DatabaseStatistic
|
|
37
37
|
icon = {table.icon}
|