@selfcommunity/react-ui 0.10.2-courses.158 → 0.10.2-courses.159
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/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
- package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
- package/lib/umd/react-ui.js +1 -1
- package/package.json +8 -8
|
@@ -195,7 +195,7 @@ function GroupInvitedWidget(inProps) {
|
|
|
195
195
|
setOpenDialog((prev) => !prev);
|
|
196
196
|
};
|
|
197
197
|
// RENDER
|
|
198
|
-
if ((!state.count && state.initialized) || !contentAvailability
|
|
198
|
+
if ((!state.count && state.initialized) || (!contentAvailability && !scUserContext.user) || !scGroup || !isGroupAdmin) {
|
|
199
199
|
return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
|
|
200
200
|
}
|
|
201
201
|
if (!state.initialized) {
|
|
@@ -181,7 +181,7 @@ function GroupRequestsWidget(inProps) {
|
|
|
181
181
|
onSubscribeActon && onSubscribeActon(user);
|
|
182
182
|
}, [dispatch, state.count, state.results, onSubscribeActon]);
|
|
183
183
|
// RENDER
|
|
184
|
-
if ((!state.count && state.initialized) || !contentAvailability
|
|
184
|
+
if ((!state.count && state.initialized) || (!contentAvailability && !scUserContext.user) || !scGroup || !isGroupAdmin) {
|
|
185
185
|
return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
|
|
186
186
|
}
|
|
187
187
|
if (!state.initialized) {
|
|
@@ -193,7 +193,7 @@ export default function GroupInvitedWidget(inProps) {
|
|
|
193
193
|
setOpenDialog((prev) => !prev);
|
|
194
194
|
};
|
|
195
195
|
// RENDER
|
|
196
|
-
if ((!state.count && state.initialized) || !contentAvailability
|
|
196
|
+
if ((!state.count && state.initialized) || (!contentAvailability && !scUserContext.user) || !scGroup || !isGroupAdmin) {
|
|
197
197
|
return _jsx(HiddenPlaceholder, {});
|
|
198
198
|
}
|
|
199
199
|
if (!state.initialized) {
|
|
@@ -179,7 +179,7 @@ export default function GroupRequestsWidget(inProps) {
|
|
|
179
179
|
onSubscribeActon && onSubscribeActon(user);
|
|
180
180
|
}, [dispatch, state.count, state.results, onSubscribeActon]);
|
|
181
181
|
// RENDER
|
|
182
|
-
if ((!state.count && state.initialized) || !contentAvailability
|
|
182
|
+
if ((!state.count && state.initialized) || (!contentAvailability && !scUserContext.user) || !scGroup || !isGroupAdmin) {
|
|
183
183
|
return _jsx(HiddenPlaceholder, {});
|
|
184
184
|
}
|
|
185
185
|
if (!state.initialized) {
|