kaori 4 лет назад
Родитель
Сommit
b7b3006846

+ 4 - 4
packages/app/src/components/InAppNotification/InAppNotification.tsx

@@ -1,8 +1,8 @@
 import React from 'react';
 import React from 'react';
 
 
 import { UserPicture } from '@growi/ui';
 import { UserPicture } from '@growi/ui';
-import { PageCommentNotification } from './PageCommentNotification';
-import { PageUpdateNotification } from './PageUpdateNotification';
+import { PageCommentInAppNotification } from './PageCommentInAppNotification';
+import { PageUpdateInAppNotification } from './PageUpdateInAppNotification';
 import { InAppNotification as IInAppNotification } from '../../interfaces/in-app-notification';
 import { InAppNotification as IInAppNotification } from '../../interfaces/in-app-notification';
 import FormattedDistanceDate from '../FormattedDistanceDate';
 import FormattedDistanceDate from '../FormattedDistanceDate';
 
 
@@ -56,9 +56,9 @@ export const InAppNotification = (props: Props): JSX.Element => {
   const renderInAppNotificationContent = (): JSX.Element => {
   const renderInAppNotificationContent = (): JSX.Element => {
     switch (componentName) {
     switch (componentName) {
       case 'Page:COMMENT':
       case 'Page:COMMENT':
-        return <PageCommentNotification {...propsNew} onClick={props.onClick(props.notification)} />;
+        return <PageCommentInAppNotification {...propsNew} onClick={props.onClick(props.notification)} />;
       case 'Page:UPDATE':
       case 'Page:UPDATE':
-        return <PageUpdateNotification {...propsNew} onClick={props.onClick(props.notification)} />;
+        return <PageUpdateInAppNotification {...propsNew} onClick={props.onClick(props.notification)} />;
       default:
       default:
         return <></>;
         return <></>;
     }
     }

+ 3 - 1
packages/app/src/components/InAppNotification/PageCommentNotification.tsx → packages/app/src/components/InAppNotification/PageCommentInAppNotification.tsx

@@ -6,7 +6,9 @@ interface Props {
   notification: IInAppNotification
   notification: IInAppNotification
   onClick: () => void
   onClick: () => void
 }
 }
-export const PageCommentNotification = (props: Props): JSX.Element => {
+export const PageCommentInAppNotification = (props: Props): JSX.Element => {
+
+  // TODO: need to add page comment create and update statuses.
 
 
   return (
   return (
     <>
     <>

+ 1 - 1
packages/app/src/components/InAppNotification/PageUpdateNotification.tsx → packages/app/src/components/InAppNotification/PageUpdateInAppNotification.tsx

@@ -6,7 +6,7 @@ interface Props {
   notification: IInAppNotification
   notification: IInAppNotification
   onClick: () => void
   onClick: () => void
 }
 }
-export const PageUpdateNotification = (props: Props): JSX.Element => {
+export const PageUpdateInAppNotification = (props: Props): JSX.Element => {
 
 
   return (
   return (
     <>
     <>