@etsoo/materialui 1.0.10 → 1.0.11
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/lib/pages/ViewPage.js +1 -1
- package/package.json +4 -4
- package/src/pages/ViewPage.tsx +7 -3
package/lib/pages/ViewPage.js
CHANGED
|
@@ -94,7 +94,7 @@ export function ViewPage(props) {
|
|
|
94
94
|
React.createElement(Typography, { variant: "caption", component: "div" },
|
|
95
95
|
itemLabel,
|
|
96
96
|
":"),
|
|
97
|
-
React.createElement(Typography, { variant: "subtitle2" }, itemData)));
|
|
97
|
+
typeof itemData === 'object' ? (itemData) : (React.createElement(Typography, { variant: "subtitle2" }, itemData))));
|
|
98
98
|
})),
|
|
99
99
|
actions != null && (React.createElement(Stack, { className: "ET-ViewPage-Actions", direction: "row", width: "100%", flexWrap: "wrap", justifyContent: "flex-end", paddingTop: paddings, paddingBottom: paddings, gap: paddings }, Utils.getResult(actions, data, refresh))),
|
|
100
100
|
Utils.getResult(children, data, refresh),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@etsoo/appscript": "^1.2.90",
|
|
55
55
|
"@etsoo/notificationbase": "^1.1.7",
|
|
56
56
|
"@etsoo/react": "^1.5.89",
|
|
57
|
-
"@etsoo/shared": "^1.1.
|
|
57
|
+
"@etsoo/shared": "^1.1.54",
|
|
58
58
|
"@mui/icons-material": "^5.10.3",
|
|
59
59
|
"@mui/material": "^5.10.4",
|
|
60
60
|
"@types/pica": "^9.0.1",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"@babel/runtime-corejs3": "^7.19.0",
|
|
83
83
|
"@testing-library/jest-dom": "^5.16.5",
|
|
84
84
|
"@testing-library/react": "^13.4.0",
|
|
85
|
-
"@types/jest": "^29.0.
|
|
85
|
+
"@types/jest": "^29.0.1",
|
|
86
86
|
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
|
87
87
|
"@typescript-eslint/parser": "^5.36.2",
|
|
88
|
-
"eslint": "^8.23.
|
|
88
|
+
"eslint": "^8.23.1",
|
|
89
89
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
90
90
|
"eslint-plugin-import": "^2.26.0",
|
|
91
91
|
"eslint-plugin-react": "^7.31.8",
|
package/src/pages/ViewPage.tsx
CHANGED
|
@@ -236,9 +236,13 @@ export function ViewPage<T extends DataTypes.StringRecord>(
|
|
|
236
236
|
>
|
|
237
237
|
{itemLabel}:
|
|
238
238
|
</Typography>
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
{typeof itemData === 'object' ? (
|
|
240
|
+
itemData
|
|
241
|
+
) : (
|
|
242
|
+
<Typography variant="subtitle2">
|
|
243
|
+
{itemData}
|
|
244
|
+
</Typography>
|
|
245
|
+
)}
|
|
242
246
|
</Grid>
|
|
243
247
|
);
|
|
244
248
|
})}
|