Shun Miyazawa 4 лет назад
Родитель
Сommit
ea35ac30d8

+ 2 - 2
packages/app/src/components/InAppNotification/InAppNotificationElm.tsx

@@ -6,7 +6,7 @@ import { HasObjectId } from '~/interfaces/has-object-id';
 import { apiv3Post } from '~/client/util/apiv3-client';
 import { apiv3Post } from '~/client/util/apiv3-client';
 import FormattedDistanceDate from '../FormattedDistanceDate';
 import FormattedDistanceDate from '../FormattedDistanceDate';
 
 
-import RenderPageModelNotification from './renderTargetModel/page/RenderPageModelNotification';
+import PageModelNotification from './TargetModel/page/PageModelNotification';
 
 
 interface Props {
 interface Props {
   notification: IInAppNotification & HasObjectId
   notification: IInAppNotification & HasObjectId
@@ -145,7 +145,7 @@ const InAppNotificationElm = (props: Props): JSX.Element => {
         {renderActionUserPictures()}
         {renderActionUserPictures()}
       </div>
       </div>
       {notification.targetModel === 'Page' && (
       {notification.targetModel === 'Page' && (
-        <RenderPageModelNotification
+        <PageModelNotification
           notification={notification}
           notification={notification}
           actionMsg={actionMsg}
           actionMsg={actionMsg}
           actionIcon={actionIcon}
           actionIcon={actionIcon}

+ 2 - 2
packages/app/src/components/InAppNotification/renderTargetModel/page/RenderPageModelNotification.tsx → packages/app/src/components/InAppNotification/TargetModel/page/PageModelNotification.tsx

@@ -13,7 +13,7 @@ interface Props {
   actionUsers: string
   actionUsers: string
 }
 }
 
 
-const RenderPageModelNotification = (props: Props): JSX.Element => {
+const PageModelNotification = (props: Props): JSX.Element => {
   const {
   const {
     notification, actionMsg, actionIcon, actionUsers,
     notification, actionMsg, actionIcon, actionUsers,
   } = props;
   } = props;
@@ -50,4 +50,4 @@ const RenderPageModelNotification = (props: Props): JSX.Element => {
   );
   );
 };
 };
 
 
-export default RenderPageModelNotification;
+export default PageModelNotification;

+ 0 - 0
packages/app/src/components/InAppNotification/renderTargetModel/page/snapshot.ts → packages/app/src/components/InAppNotification/TargetModel/page/snapshot.ts


+ 1 - 1
packages/app/src/server/service/comment.ts

@@ -4,7 +4,7 @@ import loggerFactory from '../../utils/logger';
 import ActivityDefine from '../util/activityDefine';
 import ActivityDefine from '../util/activityDefine';
 import Crowi from '../crowi';
 import Crowi from '../crowi';
 
 
-import { createSnapshot } from '../../components/InAppNotification/renderTargetModel/page/snapshot';
+import { createSnapshot } from '../../components/InAppNotification/TargetModel/page/snapshot';
 
 
 const logger = loggerFactory('growi:service:CommentService');
 const logger = loggerFactory('growi:service:CommentService');
 
 

+ 1 - 1
packages/app/src/server/service/page.js

@@ -3,7 +3,7 @@ import isThisHour from 'date-fns/isThisHour/index.js';
 import loggerFactory from '~/utils/logger';
 import loggerFactory from '~/utils/logger';
 import ActivityDefine from '../util/activityDefine';
 import ActivityDefine from '../util/activityDefine';
 
 
-import { createSnapshot } from '../../components/InAppNotification/renderTargetModel/page/snapshot';
+import { createSnapshot } from '../../components/InAppNotification/TargetModel/page/snapshot';
 
 
 const mongoose = require('mongoose');
 const mongoose = require('mongoose');
 const escapeStringRegexp = require('escape-string-regexp');
 const escapeStringRegexp = require('escape-string-regexp');