|
@@ -1,9 +1,12 @@
|
|
|
import React from 'react';
|
|
import React from 'react';
|
|
|
import { PagePathLabel } from '@growi/ui';
|
|
import { PagePathLabel } from '@growi/ui';
|
|
|
import { IInAppNotification } from '../../interfaces/in-app-notification';
|
|
import { IInAppNotification } from '../../interfaces/in-app-notification';
|
|
|
|
|
+import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
|
|
import FormattedDistanceDate from '../FormattedDistanceDate';
|
|
import FormattedDistanceDate from '../FormattedDistanceDate';
|
|
|
|
|
|
|
|
|
|
+const logger = loggerFactory('growi:NotificationContent');
|
|
|
|
|
+
|
|
|
interface Props {
|
|
interface Props {
|
|
|
actionUsers: string
|
|
actionUsers: string
|
|
|
notification: IInAppNotification
|
|
notification: IInAppNotification
|
|
@@ -19,7 +22,7 @@ const notificationClickHandler = async(pagePath) => {
|
|
|
window.location.href = pagePath;
|
|
window.location.href = pagePath;
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
- // logger.error(err);
|
|
|
|
|
|
|
+ logger.error(err);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|