@etsoo/materialui 1.5.39 → 1.5.41
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.
|
@@ -55,7 +55,6 @@ function CommonPage(props) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
: undefined, [onUpdateAll, onUpdate, onRefresh]);
|
|
58
|
-
const stateDetector = react_1.default.useMemo(() => update && app?.stateDetector({ targetFields, update }), [update, targetFields]);
|
|
59
58
|
react_1.default.useEffect(() => {
|
|
60
59
|
if (updateRef.current && update) {
|
|
61
60
|
update(true, []);
|
|
@@ -63,7 +62,7 @@ function CommonPage(props) {
|
|
|
63
62
|
}
|
|
64
63
|
}, [update]);
|
|
65
64
|
// Return the UI
|
|
66
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [stateDetector, (0, jsx_runtime_1.jsxs)(Container_1.default, { disableGutters: disableGutters, maxWidth: maxWidth, sx: sx, id: "page-container", ...rest, children: [(0, jsx_runtime_1.jsxs)(FabBox_1.FabBox, { sx: {
|
|
65
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [update && app?.stateDetector({ targetFields, update }), (0, jsx_runtime_1.jsxs)(Container_1.default, { disableGutters: disableGutters, maxWidth: maxWidth, sx: sx, id: "page-container", ...rest, children: [(0, jsx_runtime_1.jsxs)(FabBox_1.FabBox, { sx: {
|
|
67
66
|
zIndex: 1,
|
|
68
67
|
...(typeof fabTop === "function"
|
|
69
68
|
? fabTop(theme, fabPadding)
|
|
@@ -49,7 +49,6 @@ export function CommonPage(props) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
: undefined, [onUpdateAll, onUpdate, onRefresh]);
|
|
52
|
-
const stateDetector = React.useMemo(() => update && app?.stateDetector({ targetFields, update }), [update, targetFields]);
|
|
53
52
|
React.useEffect(() => {
|
|
54
53
|
if (updateRef.current && update) {
|
|
55
54
|
update(true, []);
|
|
@@ -57,7 +56,7 @@ export function CommonPage(props) {
|
|
|
57
56
|
}
|
|
58
57
|
}, [update]);
|
|
59
58
|
// Return the UI
|
|
60
|
-
return (_jsxs(React.Fragment, { children: [stateDetector, _jsxs(Container, { disableGutters: disableGutters, maxWidth: maxWidth, sx: sx, id: "page-container", ...rest, children: [_jsxs(FabBox, { sx: {
|
|
59
|
+
return (_jsxs(React.Fragment, { children: [update && app?.stateDetector({ targetFields, update }), _jsxs(Container, { disableGutters: disableGutters, maxWidth: maxWidth, sx: sx, id: "page-container", ...rest, children: [_jsxs(FabBox, { sx: {
|
|
61
60
|
zIndex: 1,
|
|
62
61
|
...(typeof fabTop === "function"
|
|
63
62
|
? fabTop(theme, fabPadding)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.41",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@emotion/styled": "^11.14.0",
|
|
43
43
|
"@etsoo/appscript": "^1.6.32",
|
|
44
44
|
"@etsoo/notificationbase": "^1.1.60",
|
|
45
|
-
"@etsoo/react": "^1.8.
|
|
45
|
+
"@etsoo/react": "^1.8.41",
|
|
46
46
|
"@etsoo/shared": "^1.2.70",
|
|
47
47
|
"@mui/icons-material": "^7.0.2",
|
|
48
48
|
"@mui/material": "^7.0.2",
|
package/src/pages/CommonPage.tsx
CHANGED
|
@@ -168,11 +168,6 @@ export function CommonPage(props: CommonPageProps) {
|
|
|
168
168
|
[onUpdateAll, onUpdate, onRefresh]
|
|
169
169
|
);
|
|
170
170
|
|
|
171
|
-
const stateDetector = React.useMemo(
|
|
172
|
-
() => update && app?.stateDetector({ targetFields, update }),
|
|
173
|
-
[update, targetFields]
|
|
174
|
-
);
|
|
175
|
-
|
|
176
171
|
React.useEffect(() => {
|
|
177
172
|
if (updateRef.current && update) {
|
|
178
173
|
update(true, []);
|
|
@@ -183,7 +178,7 @@ export function CommonPage(props: CommonPageProps) {
|
|
|
183
178
|
// Return the UI
|
|
184
179
|
return (
|
|
185
180
|
<React.Fragment>
|
|
186
|
-
{stateDetector}
|
|
181
|
+
{update && app?.stateDetector({ targetFields, update })}
|
|
187
182
|
<Container
|
|
188
183
|
disableGutters={disableGutters}
|
|
189
184
|
maxWidth={maxWidth}
|