|
|
@@ -23,16 +23,18 @@ const InAppNotificationList: FC<Props> = (props: Props) => {
|
|
|
|
|
|
const notifications = inAppNotificationData.docs;
|
|
|
|
|
|
- const notificationClickHandler = async(notification: Notification) => {
|
|
|
- try {
|
|
|
- // await this.props.crowi.apiPost('/notification.open', { id: notification._id });
|
|
|
- // jump to target page
|
|
|
- // window.location.href = notification.target.path;
|
|
|
- }
|
|
|
- catch (err) {
|
|
|
- // logger.error(err);
|
|
|
- }
|
|
|
- };
|
|
|
+ // const notificationClickHandler = async(notification: IInAppNotification) => {
|
|
|
+ // console.log('notificationClickHandler');
|
|
|
+
|
|
|
+ // try {
|
|
|
+ // // await this.props.crowi.apiPost('/notification.open', { id: notification._id });
|
|
|
+ // // jump to target page
|
|
|
+ // // window.location.href = notification.target.path;
|
|
|
+ // }
|
|
|
+ // catch (err) {
|
|
|
+ // // logger.error(err);
|
|
|
+ // }
|
|
|
+ // };
|
|
|
|
|
|
const RenderEmptyInAppNotification = (): JSX.Element => {
|
|
|
return (
|
|
|
@@ -48,7 +50,8 @@ const InAppNotificationList: FC<Props> = (props: Props) => {
|
|
|
const notificationList = notifications.map((notification: IInAppNotification) => {
|
|
|
return (
|
|
|
<div className="d-flex flex-row" key={notification._id}>
|
|
|
- <InAppNotification notification={notification} onClick={notificationClickHandler} />
|
|
|
+ {/* <InAppNotification notification={notification} onClick={notificationClickHandler} /> */}
|
|
|
+ <InAppNotification notification={notification} />
|
|
|
</div>
|
|
|
);
|
|
|
});
|