From 40fccf52cd7637101eb1f2ca4da7f6d7257c0009 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Wed, 3 Apr 2024 23:00:21 +0800 Subject: [PATCH] Update web --- .../pages/settings/integrations/notion.tsx | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/web/pages/settings/integrations/notion.tsx b/packages/web/pages/settings/integrations/notion.tsx index f45693f74..a8760da8e 100644 --- a/packages/web/pages/settings/integrations/notion.tsx +++ b/packages/web/pages/settings/integrations/notion.tsx @@ -30,7 +30,7 @@ import { applyStoredTheme } from '../../../lib/themeUpdater' import { showSuccessToast } from '../../../lib/toastHelpers' type FieldType = { - parentPageId?: string + // parentPageId?: string parentDatabaseId?: string properties?: string[] } @@ -47,7 +47,7 @@ export default function Notion(): JSX.Element { useEffect(() => { form.setFieldsValue({ - parentPageId: notion.settings?.parentPageId, + // parentPageId: notion.settings?.parentPageId, parentDatabaseId: notion.settings?.parentDatabaseId, properties: notion.settings?.properties, }) @@ -167,7 +167,7 @@ export default function Notion(): JSX.Element { onFinish={onFinish} onFinishFailed={onFinishFailed} > - + {/* label="Notion Page Id" name="parentPageId" help="The id of the Notion page where the items will be exported to. You can find it in the URL of the page." @@ -179,14 +179,20 @@ export default function Notion(): JSX.Element { ]} > - + */} - label="Notion Database Id" + label="Notion Database ID" name="parentDatabaseId" - hidden + help="The ID of the Notion database where the items will be exported to. You can find it in the URL of the database." + rules={[ + { + required: true, + message: 'Please input your Notion Database ID!', + }, + ]} > - +