From c29d570b780601dc4037ea44bb9cfa6c15082852 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Tue, 26 Mar 2024 11:54:55 +0800 Subject: [PATCH] remove Auto Sync switch from notion integration page --- packages/web/pages/settings/integrations/notion.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/web/pages/settings/integrations/notion.tsx b/packages/web/pages/settings/integrations/notion.tsx index ba7dbe746..ccfc4c56b 100644 --- a/packages/web/pages/settings/integrations/notion.tsx +++ b/packages/web/pages/settings/integrations/notion.tsx @@ -34,7 +34,6 @@ import { showSuccessToast } from '../../../lib/toastHelpers' type FieldType = { parentPageId?: string parentDatabaseId?: string - enabled: boolean properties?: string[] } @@ -52,7 +51,6 @@ export default function Notion(): JSX.Element { form.setFieldsValue({ parentPageId: notion.settings?.parentPageId, parentDatabaseId: notion.settings?.parentDatabaseId, - enabled: notion.enabled, properties: notion.settings?.properties, }) }, [form, notion]) @@ -71,7 +69,7 @@ export default function Notion(): JSX.Element { name: notion.name, type: notion.type, token: notion.token, - enabled: values.enabled, + enabled: true, settings: values, }) } @@ -194,15 +192,6 @@ export default function Notion(): JSX.Element { - - label="Automatic Sync" - name="enabled" - valuePropName="checked" - help="Once connected all new items will be exported to Notion" - > - - - label="Properties to Export" name="properties"