Shun Miyazawa 4 лет назад
Родитель
Сommit
e5defe13d1
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      packages/app/src/components/Me/InAppNotificationSettings.tsx

+ 7 - 1
packages/app/src/components/Me/InAppNotificationSettings.tsx

@@ -1,4 +1,4 @@
-import React, { FC } from 'react';
+import React, { FC, useState } from 'react';
 import { useTranslation } from 'react-i18next';
 
 import AppContainer from '~/client/services/AppContainer';
@@ -9,6 +9,11 @@ type Props = {
   appContainer: AppContainer,
 };
 
+type SubscribeRule = {
+  name: string,
+  isEnabled: boolean,
+}
+
 const defaultSubscribeRules = [
   {
     name: 'PAGE_CREATE',
@@ -20,6 +25,7 @@ const defaultSubscribeRules = [
 const InAppNotificationSettings: FC<Props> = (props: Props) => {
   const { appContainer } = props;
   const { t } = useTranslation();
+  const [subscribeRules, setSubscribeRules] = useState<SubscribeRule[]>([]);
 
   const isCheckedRule = () => {
     return;