mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update the readwise integration page to handle errors, update descriptions
This commit is contained in:
parent
d9add56858
commit
1ab504c4f2
1 changed files with 6 additions and 5 deletions
|
|
@ -61,25 +61,26 @@ export default function Integrations(): JSX.Element {
|
|||
const readwiseConnected = useMemo(() => {
|
||||
return integrations.some((i) => i.type == 'READWISE')
|
||||
}, [integrations])
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
setIntegrationsArray([
|
||||
{
|
||||
icon: '/static/icons/logseq.svg',
|
||||
title: 'Logseq',
|
||||
subText: 'Organize your personal knowledge base',
|
||||
subText: 'Logseq is an open-source knowledge base. Use the Omnivore Logseq plugin to sync articles, highlights, and notes to Logseq.',
|
||||
button: {
|
||||
text: `Install Logseq Plugin`,
|
||||
icon: <DownloadSimple size={16} weight={'bold'} />,
|
||||
style: 'ctaDarkYellow',
|
||||
action: () => alert('New LInk required')
|
||||
action: () => {
|
||||
router.push(`https://github.com/omnivore-app/logseq-omnivore`)
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
icon: '/static/icons/readwise.svg',
|
||||
title: 'ReadWise',
|
||||
subText: 'Synchronize ebooks & articles from Readwise account',
|
||||
subText: 'Readwise makes it easy to revisit and learn from your ebook & article highlights. Use our Readwise integration to sync your highlights from Omnivore to Readwise.',
|
||||
button: {
|
||||
text: readwiseConnected ? 'Remove' : 'Connect to Readwise',
|
||||
icon: <Link size={16} weight={'bold'} />,
|
||||
|
|
@ -99,7 +100,7 @@ export default function Integrations(): JSX.Element {
|
|||
},
|
||||
},
|
||||
])
|
||||
}, [readwiseConnected, webhooks])
|
||||
}, [readwiseConnected, integrations, webhooks])
|
||||
|
||||
return (
|
||||
<PrimaryLayout pageTestId={'integrations'}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue