From dbafc9a40be593b573f19413a93f93c1dc6ba375 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 13 Jun 2023 16:28:21 +0800 Subject: [PATCH] Enable the pocket importer on the web --- packages/web/pages/settings/integrations.tsx | 33 ++++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/packages/web/pages/settings/integrations.tsx b/packages/web/pages/settings/integrations.tsx index 0623edefd..2babac6c7 100644 --- a/packages/web/pages/settings/integrations.tsx +++ b/packages/web/pages/settings/integrations.tsx @@ -161,23 +161,22 @@ export default function Integrations(): JSX.Element { }, }, }, - - // { - // icon: '/static/icons/pocket.svg', - // title: 'Pocket', - // subText: - // 'Pocket is a place to save articles, videos, and more. Our Pocket integration allows importing your Pocket library to Omnivore. Once connected we will asyncronously import all your Pocket articles into Omnivore, as this process is resource intensive it can take some time. You will receive an email when the process is completed.', - // button: { - // text: pocketConnected ? 'Import' : 'Connect to Pocket', - // icon: , - // style: 'ctaDarkYellow', - // action: () => { - // pocketConnected - // ? importFromIntegration(pocketConnected.id) - // : redirectToPocket() - // }, - // }, - // }, + { + icon: '/static/icons/pocket.svg', + title: 'Pocket', + subText: + 'Pocket is a place to save articles, videos, and more. Our Pocket integration allows importing your Pocket library to Omnivore. Once connected we will asyncronously import all your Pocket articles into Omnivore, as this process is resource intensive it can take some time. You will receive an email when the process is completed.', + button: { + text: pocketConnected ? 'Import' : 'Connect to Pocket', + icon: , + style: 'ctaDarkYellow', + action: () => { + pocketConnected + ? importFromIntegration(pocketConnected.id) + : redirectToPocket() + }, + }, + }, { icon: '/static/icons/webhooks.svg', title: 'Webhooks',