@etsoo/react 1.4.91 → 1.4.92
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.
|
@@ -84,9 +84,6 @@ export function ListMoreDisplay(props) {
|
|
|
84
84
|
ref.isMounted = false;
|
|
85
85
|
};
|
|
86
86
|
}, []);
|
|
87
|
-
// Loading
|
|
88
|
-
if (states.items == null)
|
|
89
|
-
return React.createElement(CircularProgress, { size: 20 });
|
|
90
87
|
return (React.createElement(React.Fragment, null,
|
|
91
88
|
headerRenderer && headerRenderer(reset),
|
|
92
89
|
React.createElement(Card, { ...rest },
|
|
@@ -94,7 +91,7 @@ export function ListMoreDisplay(props) {
|
|
|
94
91
|
React.createElement(CardContent, { sx: {
|
|
95
92
|
paddingTop: 0,
|
|
96
93
|
paddingBottom: states.completed ? 0 : 'inherit'
|
|
97
|
-
} }, states.items.map((item, index) => children(item, index))),
|
|
94
|
+
} }, states.items == null ? (React.createElement(CircularProgress, { size: 20 })) : (states.items.map((item, index) => children(item, index)))),
|
|
98
95
|
!states.completed && (React.createElement(CardActions, { sx: { justifyContent: 'flex-end' } },
|
|
99
96
|
React.createElement(LoadingButton, { onClick: async () => await loadDataLocal() }, moreLabel))))));
|
|
100
97
|
}
|
package/package.json
CHANGED
|
@@ -170,9 +170,6 @@ export function ListMoreDisplay<
|
|
|
170
170
|
};
|
|
171
171
|
}, []);
|
|
172
172
|
|
|
173
|
-
// Loading
|
|
174
|
-
if (states.items == null) return <CircularProgress size={20} />;
|
|
175
|
-
|
|
176
173
|
return (
|
|
177
174
|
<React.Fragment>
|
|
178
175
|
{headerRenderer && headerRenderer(reset)}
|
|
@@ -184,7 +181,11 @@ export function ListMoreDisplay<
|
|
|
184
181
|
paddingBottom: states.completed ? 0 : 'inherit'
|
|
185
182
|
}}
|
|
186
183
|
>
|
|
187
|
-
{states.items
|
|
184
|
+
{states.items == null ? (
|
|
185
|
+
<CircularProgress size={20} />
|
|
186
|
+
) : (
|
|
187
|
+
states.items.map((item, index) => children(item, index))
|
|
188
|
+
)}
|
|
188
189
|
</CardContent>
|
|
189
190
|
{!states.completed && (
|
|
190
191
|
<CardActions sx={{ justifyContent: 'flex-end' }}>
|