소스 검색

clean code

kaori 4 년 전
부모
커밋
3ff546dfee
1개의 변경된 파일2개의 추가작업 그리고 14개의 파일을 삭제
  1. 2 14
      packages/app/src/components/InAppNotification/AllInAppNotifications.tsx

+ 2 - 14
packages/app/src/components/InAppNotification/AllInAppNotifications.tsx

@@ -1,17 +1,10 @@
 import React, { FC } from 'react';
 
-import AppContainer from '../../client/services/AppContainer';
-
 import InAppNotificationList from './InAppNotificationList';
-import { withUnstatedContainers } from '../UnstatedUtils';
 import { useSWRxInAppNotifications } from '../../stores/in-app-notification';
 
-type Props = {
-  appContainer: AppContainer,
-
-};
 
-const AllInAppNotifications: FC<Props> = (props: Props) => {
+const AllInAppNotifications: FC = () => {
   const limit = 6;
   const { data: inAppNotificationData } = useSWRxInAppNotifications(limit);
 
@@ -20,9 +13,4 @@ const AllInAppNotifications: FC<Props> = (props: Props) => {
   );
 };
 
-/**
- * Wrapper component for using unstated
- */
-const AllInAppNotificationsWrapper = withUnstatedContainers(AllInAppNotifications, [AppContainer]);
-
-export default AllInAppNotificationsWrapper;
+export default AllInAppNotifications;