kaori 4 anni fa
parent
commit
9111c557b5

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

@@ -8,11 +8,10 @@ interface Props {
   notification: IInAppNotification
 }
 
-export const InAppNotificationElm = (props: Props): JSX.Element => {
+const InAppNotificationElm = (props: Props): JSX.Element => {
 
   const { notification } = props;
 
-  // TODO get actionUsers with mongoose virtual method by #79077
   const getActionUsers = () => {
     const latestActionUsers = notification.actionUsers.slice(0, 3);
     const latestUsers = latestActionUsers.map((user) => {
@@ -83,3 +82,5 @@ export const InAppNotificationElm = (props: Props): JSX.Element => {
     </>
   );
 };
+
+export default InAppNotificationElm;

+ 1 - 1
packages/app/src/components/InAppNotification/InAppNotificationList.tsx

@@ -2,7 +2,7 @@ import React, { FC } from 'react';
 
 import { PaginateResult } from 'mongoose';
 import { IInAppNotification } from '../../interfaces/in-app-notification';
-import { InAppNotificationElm } from './InAppNotificationElm';
+import InAppNotificationElm from './InAppNotificationElm';
 
 type Props = {
   inAppNotificationData: PaginateResult<IInAppNotification> | undefined;