@selfcommunity/react-ui 0.10.2 → 0.10.3-alpha.1

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.
@@ -232,6 +232,9 @@ function EventMediaWidget(inProps) {
232
232
  handleNext();
233
233
  }
234
234
  }, [isMobile, openDialog, state.next]);
235
+ if (!scUserContext.user) {
236
+ return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
237
+ }
235
238
  // RENDER
236
239
  if (!scEvent ||
237
240
  !state.initialized ||
@@ -19,6 +19,7 @@ const constants_1 = require("./constants");
19
19
  const Skeleton_1 = tslib_1.__importDefault(require("./Skeleton"));
20
20
  const TabContentComponent_1 = tslib_1.__importDefault(require("./TabContentComponent"));
21
21
  const types_1 = require("./types");
22
+ const HiddenPlaceholder_1 = tslib_1.__importDefault(require("../../shared/HiddenPlaceholder"));
22
23
  const classes = {
23
24
  root: `${constants_1.PREFIX}-root`,
24
25
  content: `${constants_1.PREFIX}-content`,
@@ -172,6 +173,9 @@ function EventMembersWidget(inProps) {
172
173
  }
173
174
  setRefresh(_tabValue);
174
175
  }, []);
176
+ if (!scUserContext.user) {
177
+ return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
178
+ }
175
179
  if (!scEvent ||
176
180
  !participants.initialized ||
177
181
  (scEvent && ((eventId !== undefined && scEvent.id !== eventId) || (event && scEvent.id !== event.id))) ||
@@ -230,6 +230,9 @@ export default function EventMediaWidget(inProps) {
230
230
  handleNext();
231
231
  }
232
232
  }, [isMobile, openDialog, state.next]);
233
+ if (!scUserContext.user) {
234
+ return _jsx(HiddenPlaceholder, {});
235
+ }
233
236
  // RENDER
234
237
  if (!scEvent ||
235
238
  !state.initialized ||
@@ -17,6 +17,7 @@ import { PREFIX } from './constants';
17
17
  import Skeleton from './Skeleton';
18
18
  import TabContentComponent from './TabContentComponent';
19
19
  import { TabContentEnum } from './types';
20
+ import HiddenPlaceholder from '../../shared/HiddenPlaceholder';
20
21
  const classes = {
21
22
  root: `${PREFIX}-root`,
22
23
  content: `${PREFIX}-content`,
@@ -170,6 +171,9 @@ export default function EventMembersWidget(inProps) {
170
171
  }
171
172
  setRefresh(_tabValue);
172
173
  }, []);
174
+ if (!scUserContext.user) {
175
+ return _jsx(HiddenPlaceholder, {});
176
+ }
173
177
  if (!scEvent ||
174
178
  !participants.initialized ||
175
179
  (scEvent && ((eventId !== undefined && scEvent.id !== eventId) || (event && scEvent.id !== event.id))) ||