feat: start pocket importer once connected

This commit is contained in:
Hongbo Wu 2023-05-22 18:40:38 +08:00
parent c04798a1e4
commit 7253e9b80f

View file

@ -114,6 +114,8 @@ export default function Integrations(): JSX.Element {
if (result) {
revalidate()
showSuccessToast('Connected with Pocket.')
// start the import
await importFromIntegration(result.id)
} else {
showErrorToast('There was an error connecting to Pocket.')
}