@selfcommunity/react-templates 0.3.50-events.48 → 0.3.50-events.49
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.
|
@@ -14,6 +14,7 @@ const react_intl_1 = require("react-intl");
|
|
|
14
14
|
const notistack_1 = require("notistack");
|
|
15
15
|
const constants_1 = require("./constants");
|
|
16
16
|
const Skeleton_1 = tslib_1.__importDefault(require("./Skeleton"));
|
|
17
|
+
const material_1 = require("@mui/material");
|
|
17
18
|
const classes = {
|
|
18
19
|
root: `${constants_1.PREFIX}-root`
|
|
19
20
|
};
|
|
@@ -95,6 +96,7 @@ function EventFeed(inProps) {
|
|
|
95
96
|
}
|
|
96
97
|
return w;
|
|
97
98
|
}), [widgets, scEvent]);
|
|
99
|
+
console.log(scEvent);
|
|
98
100
|
if (!scEvent) {
|
|
99
101
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
100
102
|
}
|
|
@@ -102,7 +104,7 @@ function EventFeed(inProps) {
|
|
|
102
104
|
scEvent.subscription_status !== types_1.SCEventSubscriptionStatusType.SUBSCRIBED &&
|
|
103
105
|
scEvent.subscription_status !== types_1.SCEventSubscriptionStatusType.GOING &&
|
|
104
106
|
scEvent.subscription_status !== types_1.SCEventSubscriptionStatusType.NOT_GOING) {
|
|
105
|
-
return (0, jsx_runtime_1.jsx)(react_ui_1.EventInfoWidget, { className: classes.root, event: scEvent });
|
|
107
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(react_ui_1.EventInfoWidget, { className: classes.root, event: scEvent }) })));
|
|
106
108
|
}
|
|
107
109
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), id: id, ref: feedRef, endpoint: Object.assign(Object.assign({}, api_services_1.Endpoints.GetEventFeed), { url: () => api_services_1.Endpoints.GetEventFeed.url({ id: scEvent.id }) }), widgets: _widgets, ItemComponent: react_ui_1.FeedObject, itemPropsGenerator: (scUser, item) => {
|
|
108
110
|
var _a;
|
|
@@ -11,6 +11,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
11
11
|
import { useSnackbar } from 'notistack';
|
|
12
12
|
import { PREFIX } from './constants';
|
|
13
13
|
import EventFeedSkeleton from './Skeleton';
|
|
14
|
+
import { Box } from '@mui/material';
|
|
14
15
|
const classes = {
|
|
15
16
|
root: `${PREFIX}-root`
|
|
16
17
|
};
|
|
@@ -92,6 +93,7 @@ export default function EventFeed(inProps) {
|
|
|
92
93
|
}
|
|
93
94
|
return w;
|
|
94
95
|
}), [widgets, scEvent]);
|
|
96
|
+
console.log(scEvent);
|
|
95
97
|
if (!scEvent) {
|
|
96
98
|
return _jsx(EventFeedSkeleton, {});
|
|
97
99
|
}
|
|
@@ -99,7 +101,7 @@ export default function EventFeed(inProps) {
|
|
|
99
101
|
scEvent.subscription_status !== SCEventSubscriptionStatusType.SUBSCRIBED &&
|
|
100
102
|
scEvent.subscription_status !== SCEventSubscriptionStatusType.GOING &&
|
|
101
103
|
scEvent.subscription_status !== SCEventSubscriptionStatusType.NOT_GOING) {
|
|
102
|
-
return _jsx(EventInfoWidget, { className: classes.root, event: scEvent });
|
|
104
|
+
return (_jsx(Box, Object.assign({ mt: 2 }, { children: _jsx(EventInfoWidget, { className: classes.root, event: scEvent }) })));
|
|
103
105
|
}
|
|
104
106
|
return (_jsx(Root, Object.assign({ className: classNames(classes.root, className), id: id, ref: feedRef, endpoint: Object.assign(Object.assign({}, Endpoints.GetEventFeed), { url: () => Endpoints.GetEventFeed.url({ id: scEvent.id }) }), widgets: _widgets, ItemComponent: FeedObject, itemPropsGenerator: (scUser, item) => {
|
|
105
107
|
var _a;
|