|
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
notification: IInAppNotification
|
|
|
onClick: () => void
|
|
|
}
|
|
|
+
|
|
|
export const PageCommentNotification = (props: Props) => {
|
|
|
|
|
|
return (
|
|
|
@@ -19,5 +20,19 @@ export const PageCommentNotification = (props: Props) => {
|
|
|
<FormattedDistanceDate id={props.notification._id} date={props.notification.createdAt} isShowTooltip={false} />
|
|
|
</>
|
|
|
);
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+export const PageUpdateNotification = (props: Props) => {
|
|
|
+
|
|
|
+ return (
|
|
|
+ <>
|
|
|
+ <div>
|
|
|
+ <b>{props.actionUsers}</b> page updated on {props.notification.target.path}
|
|
|
+ </div>
|
|
|
+ <i className="fa fa-file-o mr-2" />
|
|
|
+ <FormattedDistanceDate id={props.notification._id} date={props.notification.createdAt} isShowTooltip={false} />
|
|
|
+ </>
|
|
|
+ );
|
|
|
|
|
|
};
|