@etsoo/materialui 1.2.21 → 1.2.22
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 +1 -1
- package/src/pages/ViewPage.tsx +14 -12
package/lib/pages/ViewPage.js
CHANGED
|
@@ -113,7 +113,7 @@ export function ViewPage(props) {
|
|
|
113
113
|
":")),
|
|
114
114
|
typeof itemData === "object" ? (itemData) : (React.createElement(Typography, { variant: "subtitle2" }, itemData))));
|
|
115
115
|
})),
|
|
116
|
-
React.createElement(Stack, { className: "ET-ViewPage-Actions", direction: "row", width: "100%", flexWrap: "wrap", justifyContent: "flex-end", paddingTop: actions == null ? undefined : paddings, paddingBottom: paddings, gap: paddings }, actions != null && Utils.getResult(actions, data, refresh)),
|
|
116
|
+
actions !== null && (React.createElement(Stack, { className: "ET-ViewPage-Actions", direction: "row", width: "100%", flexWrap: "wrap", justifyContent: "flex-end", paddingTop: actions == null ? undefined : paddings, paddingBottom: paddings, gap: paddings }, actions != null && Utils.getResult(actions, data, refresh))),
|
|
117
117
|
Utils.getResult(children, data, refresh),
|
|
118
118
|
pullToRefresh && (React.createElement(PullToRefreshUI, { mainElement: pullContainer, triggerElement: pullContainer, instructionsPullToRefresh: labels.pullToRefresh, instructionsReleaseToRefresh: labels.releaseToRefresh, instructionsRefreshing: labels.refreshing, onRefresh: refresh, shouldPullToRefresh: () => {
|
|
119
119
|
const container = document.querySelector(pullContainer);
|
package/package.json
CHANGED
package/src/pages/ViewPage.tsx
CHANGED
|
@@ -288,18 +288,20 @@ export function ViewPage<T extends DataTypes.StringRecord>(
|
|
|
288
288
|
);
|
|
289
289
|
})}
|
|
290
290
|
</Grid>
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
291
|
+
{actions !== null && (
|
|
292
|
+
<Stack
|
|
293
|
+
className="ET-ViewPage-Actions"
|
|
294
|
+
direction="row"
|
|
295
|
+
width="100%"
|
|
296
|
+
flexWrap="wrap"
|
|
297
|
+
justifyContent="flex-end"
|
|
298
|
+
paddingTop={actions == null ? undefined : paddings}
|
|
299
|
+
paddingBottom={paddings}
|
|
300
|
+
gap={paddings}
|
|
301
|
+
>
|
|
302
|
+
{actions != null && Utils.getResult(actions, data, refresh)}
|
|
303
|
+
</Stack>
|
|
304
|
+
)}
|
|
303
305
|
{Utils.getResult(children, data, refresh)}
|
|
304
306
|
{pullToRefresh && (
|
|
305
307
|
<PullToRefreshUI
|