|
|
@@ -3,6 +3,8 @@ import { InAppNotification as IInAppNotification } from '../../interfaces/in-app
|
|
|
|
|
|
import FormattedDistanceDate from '../FormattedDistanceDate';
|
|
|
|
|
|
+import { PagePath } from './PagePath';
|
|
|
+
|
|
|
interface Props {
|
|
|
actionUsers: string
|
|
|
notification: IInAppNotification
|
|
|
@@ -14,7 +16,7 @@ export const PageCommentCreatedNotification = (props: Props): JSX.Element => {
|
|
|
return (
|
|
|
<>
|
|
|
<div>
|
|
|
- <b>{props.actionUsers}</b> commented on {props.notification.target.path}
|
|
|
+ <b>{props.actionUsers}</b> commented on <PagePath notification={props.notification} />
|
|
|
</div>
|
|
|
<i className="fa fa-comment-o mr-2" />
|
|
|
<FormattedDistanceDate id={props.notification._id} date={props.notification.createdAt} isShowTooltip={false} />
|
|
|
@@ -27,7 +29,7 @@ export const PageCommentUpdatedNotification = (props: Props): JSX.Element => {
|
|
|
return (
|
|
|
<>
|
|
|
<div>
|
|
|
- <b>{props.actionUsers}</b> comment updated on {props.notification.target.path}
|
|
|
+ <b>{props.actionUsers}</b> comment updated on <PagePath notification={props.notification} />
|
|
|
</div>
|
|
|
<i className="fa fa-comment-o mr-2" />
|
|
|
<FormattedDistanceDate id={props.notification._id} date={props.notification.createdAt} isShowTooltip={false} />
|
|
|
@@ -40,7 +42,7 @@ export const PageUpdatedNotification = (props: Props): JSX.Element => {
|
|
|
return (
|
|
|
<>
|
|
|
<div>
|
|
|
- <b>{props.actionUsers}</b> page updated on {props.notification.target.path}
|
|
|
+ <b>{props.actionUsers}</b> page updated on <PagePath notification={props.notification} />
|
|
|
</div>
|
|
|
<i className="fa fa-file-o mr-2" />
|
|
|
<FormattedDistanceDate id={props.notification._id} date={props.notification.createdAt} isShowTooltip={false} />
|