{
- setIntegrationsArray([
+ const integrationsArray = [
{
icon: '/static/icons/logseq.svg',
title: 'Logseq',
@@ -267,22 +269,6 @@ export default function Integrations(): JSX.Element {
],
},
},
- {
- icon: '/static/icons/notion.png',
- title: 'Notion',
- subText:
- 'Notion is an all-in-one workspace. Use our Notion integration to sync your Omnivore items to Notion.',
- button: {
- text: isConnected('NOTION') ? 'Settings' : 'Connect',
- icon: ,
- style: isConnected('NOTION') ? 'ctaWhite' : 'ctaDarkYellow',
- action: () => {
- isConnected('NOTION')
- ? router.push('/settings/integrations/notion')
- : redirectToIntegration('NOTION')
- },
- },
- },
{
icon: '/static/icons/webhooks.svg',
title: 'Webhooks',
@@ -310,7 +296,27 @@ export default function Integrations(): JSX.Element {
},
},
},
- ])
+ ]
+
+ userHasFeature(viewerData?.me, 'notion') &&
+ integrationsArray.push({
+ icon: '/static/icons/notion.png',
+ title: 'Notion',
+ subText:
+ 'Notion is an all-in-one workspace. Use our Notion integration to sync your Omnivore items to Notion.',
+ button: {
+ text: isConnected('NOTION') ? 'Settings' : 'Connect',
+ icon: ,
+ style: isConnected('NOTION') ? 'ctaWhite' : 'ctaDarkYellow',
+ action: () => {
+ isConnected('NOTION')
+ ? router.push('/settings/integrations/notion')
+ : redirectToIntegration('NOTION')
+ },
+ },
+ })
+
+ setIntegrationsArray(integrationsArray)
}, [pocketConnected, readwiseConnected, webhooks, integrations])
return (
diff --git a/packages/web/pages/settings/integrations/notion.tsx b/packages/web/pages/settings/integrations/notion.tsx
index ba7dbe746..f45693f74 100644
--- a/packages/web/pages/settings/integrations/notion.tsx
+++ b/packages/web/pages/settings/integrations/notion.tsx
@@ -7,7 +7,6 @@ import {
message,
Space,
Spin,
- Switch,
} from 'antd'
import 'antd/dist/antd.compact.css'
import { CheckboxValueType } from 'antd/lib/checkbox/Group'
@@ -16,7 +15,6 @@ import { useRouter } from 'next/router'
import { useCallback, useEffect, useState } from 'react'
import { HStack, VStack } from '../../../components/elements/LayoutPrimitives'
import { PageMetaData } from '../../../components/patterns/PageMetaData'
-import { Beta } from '../../../components/templates/Beta'
import { Header } from '../../../components/templates/settings/SettingsTable'
import { SettingsLayout } from '../../../components/templates/SettingsLayout'
import { deleteIntegrationMutation } from '../../../lib/networking/mutations/deleteIntegrationMutation'
@@ -34,7 +32,6 @@ import { showSuccessToast } from '../../../lib/toastHelpers'
type FieldType = {
parentPageId?: string
parentDatabaseId?: string
- enabled: boolean
properties?: string[]
}
@@ -52,7 +49,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 +67,7 @@ export default function Notion(): JSX.Element {
name: notion.name,
type: notion.type,
token: notion.token,
- enabled: values.enabled,
+ enabled: true,
settings: values,
})
}
@@ -159,7 +155,6 @@ export default function Notion(): JSX.Element {
height={75}
/>
Notion integration settings
-
@@ -194,15 +189,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"