kaori 4 лет назад
Родитель
Сommit
1215fb0750
1 измененных файлов с 4 добавлено и 7 удалено
  1. 4 7
      packages/app/src/components/InAppNotification/InAppNotificationContents.tsx

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

@@ -52,14 +52,11 @@ const InAppNotificationContents: FC<Props> = (props: Props) => {
     return <>{notificationList}</>;
     return <>{notificationList}</>;
   };
   };
 
 
-  const InAppNotificationContents = (): JSX.Element => {
-    if (!props.isLoaded) {
-      return <RenderUnLoadedInAppNotification />;
-    }
-    return <RenderInAppNotificationList />;
-  };
 
 
-  return <InAppNotificationContents />;
+  if (!props.isLoaded) {
+    return <RenderUnLoadedInAppNotification />;
+  }
+  return <RenderInAppNotificationList />;
 };
 };