kaori hace 4 años
padre
commit
1215fb0750

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

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