@selfcommunity/react-ui 0.7.9-alpha.34 → 0.7.9-alpha.35
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.
|
@@ -19,7 +19,7 @@ const classes = {
|
|
|
19
19
|
root: `${constants_1.PREFIX}-group-root`,
|
|
20
20
|
avatar: `${constants_1.PREFIX}-avatar`,
|
|
21
21
|
actions: `${constants_1.PREFIX}-actions`,
|
|
22
|
-
|
|
22
|
+
acceptButton: `${constants_1.PREFIX}-reply-button`,
|
|
23
23
|
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
24
24
|
username: `${constants_1.PREFIX}-username`
|
|
25
25
|
};
|
|
@@ -72,7 +72,7 @@ function GroupNotification(props) {
|
|
|
72
72
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
73
73
|
react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
|
|
74
74
|
react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }),
|
|
75
|
-
status && status !== types_1.SCGroupSubscriptionStatusType.SUBSCRIBED && (react_1.default.createElement(lab_1.LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.
|
|
75
|
+
status && status !== types_1.SCGroupSubscriptionStatusType.SUBSCRIBED && (react_1.default.createElement(lab_1.LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: react_core_1.Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) },
|
|
76
76
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.groupSubscribeButton.accept", defaultMessage: "ui.groupSubscribeButton.accept" })))) }, rest)),
|
|
77
77
|
openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
|
|
78
78
|
}
|
|
@@ -17,7 +17,7 @@ const classes = {
|
|
|
17
17
|
root: `${PREFIX}-group-root`,
|
|
18
18
|
avatar: `${PREFIX}-avatar`,
|
|
19
19
|
actions: `${PREFIX}-actions`,
|
|
20
|
-
|
|
20
|
+
acceptButton: `${PREFIX}-reply-button`,
|
|
21
21
|
activeAt: `${PREFIX}-active-at`,
|
|
22
22
|
username: `${PREFIX}-username`
|
|
23
23
|
};
|
|
@@ -70,7 +70,7 @@ export default function GroupNotification(props) {
|
|
|
70
70
|
return (React.createElement(React.Fragment, null,
|
|
71
71
|
React.createElement(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: React.createElement(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
|
|
72
72
|
React.createElement(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }),
|
|
73
|
-
status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (React.createElement(LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.
|
|
73
|
+
status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (React.createElement(LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) },
|
|
74
74
|
React.createElement(FormattedMessage, { id: "ui.groupSubscribeButton.accept", defaultMessage: "ui.groupSubscribeButton.accept" })))) }, rest)),
|
|
75
75
|
openAlert && React.createElement(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })));
|
|
76
76
|
}
|