Shun Miyazawa 4 年之前
父节点
当前提交
37e8bc79cb
共有 1 个文件被更改,包括 12 次插入10 次删除
  1. 12 10
      packages/app/src/components/Me/InAppNotificationSettings.tsx

+ 12 - 10
packages/app/src/components/Me/InAppNotificationSettings.tsx

@@ -9,24 +9,26 @@ type Props = {
   appContainer: AppContainer,
   appContainer: AppContainer,
 };
 };
 
 
+const defaultSubscribeRules = [
+  { name: 'PAGE_CREATE', isEnabled: true },
+];
+
+
 const InAppNotificationSettings: FC<Props> = (props: Props) => {
 const InAppNotificationSettings: FC<Props> = (props: Props) => {
   const { appContainer } = props;
   const { appContainer } = props;
   const { t } = useTranslation();
   const { t } = useTranslation();
 
 
   const updateSettingsHandler = async() => {
   const updateSettingsHandler = async() => {
 
 
-    const defaultSubscribeRules = [
-      { name: 'PAGE_CREATE', isEnabled: true },
-    ];
 
 
     // TODO: 80102
     // TODO: 80102
-    try {
-      const res = await appContainer.apiv3Put('/personal-setting/in-app-notification-settings', { defaultSubscribeRules });
-      console.log(res);
-    }
-    catch (err) {
-      toastError(err);
-    }
+    // try {
+    //   const res = await appContainer.apiv3Put('/personal-setting/in-app-notification-settings', { defaultSubscribeRules });
+    //   console.log(res);
+    // }
+    // catch (err) {
+    //   toastError(err);
+    // }
 
 
     return;
     return;
   };
   };