Browse Source

clean code

kaori 4 years ago
parent
commit
996c1a086f

+ 0 - 13
packages/app/src/components/InAppNotification/InAppNotificationList.tsx

@@ -23,19 +23,6 @@ const InAppNotificationList: FC<Props> = (props: Props) => {
 
   const notifications = inAppNotificationData.docs;
 
-  // const notificationClickHandler = async(notification: IInAppNotification) => {
-  //   console.log('notificationClickHandler');
-
-  //   try {
-  //     // await this.props.crowi.apiPost('/notification.open', { id: notification._id });
-  //     // jump to target page
-  //     // window.location.href = notification.target.path;
-  //   }
-  //   catch (err) {
-  //     // logger.error(err);
-  //   }
-  // };
-
   const RenderEmptyInAppNotification = (): JSX.Element => {
     return (
       // TODO: apply i18n by #78569

+ 0 - 1
packages/app/src/components/InAppNotification/NotificationContent.tsx

@@ -12,7 +12,6 @@ interface Props {
   notification: IInAppNotification
 }
 
-// const notificationClickHandler = async(notification: IInAppNotification) => {
 const notificationClickHandler = async(pagePath: string) => {
 
   try {