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

+ 7 - 13
packages/app/src/components/InAppNotification/InAppNotificationContents.tsx

@@ -4,8 +4,7 @@ import { IInAppNotification } from '../../interfaces/in-app-notification';
 import { InAppNotification } from './InAppNotification';
 
 type Props = {
-  notifications: any;
-
+  notifications: Array<IInAppNotification>;
 };
 
 const InAppNotificationContents: FC<Props> = (props: Props) => {
@@ -52,17 +51,12 @@ const InAppNotificationContents: FC<Props> = (props: Props) => {
     return <>{notificationList}</>;
   };
 
-  const InAppNotificationContents = (): JSX.Element => {
-    // if (!isLoaded) {
-    //   return <RenderUnLoadedInAppNotification />;
-    // }
-    return <RenderInAppNotificationList />;
-  };
-
-  return (
-    // <>InAppNotificationContents</>
-    <InAppNotificationContents />
-  );
+  // const InAppNotificationContents = (): JSX.Element => {
+  // if (!isLoaded) {
+  //   return <RenderUnLoadedInAppNotification />;
+  // }
+  return <RenderInAppNotificationList />;
+  // };
 };