mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
remove Auto Sync switch from notion integration page
This commit is contained in:
parent
a888354e33
commit
c29d570b78
1 changed files with 1 additions and 12 deletions
|
|
@ -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 {
|
|||
<Input disabled />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item<FieldType>
|
||||
label="Automatic Sync"
|
||||
name="enabled"
|
||||
valuePropName="checked"
|
||||
help="Once connected all new items will be exported to Notion"
|
||||
>
|
||||
<Switch />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item<FieldType>
|
||||
label="Properties to Export"
|
||||
name="properties"
|
||||
|
|
|
|||
Loading…
Reference in a new issue