diff --git a/packages/web/pages/settings/integrations/notion.tsx b/packages/web/pages/settings/integrations/notion.tsx index 28fac42bb..e61303385 100644 --- a/packages/web/pages/settings/integrations/notion.tsx +++ b/packages/web/pages/settings/integrations/notion.tsx @@ -153,69 +153,73 @@ export default function Notion(): JSX.Element { -
- - label="Notion Page Id" - name="parentPageId" - rules={[ - { - required: true, - message: 'Please input your Notion Page Id!', - }, - ]} - > - - + {notion && ( +
+ + + label="Notion Page Id" + name="parentPageId" + rules={[ + { + required: true, + message: 'Please input your Notion Page Id!', + }, + ]} + > + + - - label="Notion Database Id" - name="parentDatabaseId" - hidden - > - - + + label="Notion Database Id" + name="parentDatabaseId" + hidden + > + + - - label="Automatic Sync" - name="autoSync" - valuePropName="checked" - > - - + + label="Automatic Sync" + name="autoSync" + valuePropName="checked" + > + + - - label="Properties to Export" - name="properties" - > - - Highlights - Labels - Notes - - + + label="Properties to Export" + name="properties" + > + + Highlights + Labels + Notes + + - - - - + + + + - - - - + + + + +
+ )}