diff --git a/src/components/Konnector.jsx b/src/components/Konnector.jsx
index db98aee01e..727142cd69 100644
--- a/src/components/Konnector.jsx
+++ b/src/components/Konnector.jsx
@@ -4,7 +4,7 @@ import { useLocation, useNavigate, useParams } from 'react-router-dom'
import datacardOptions from 'cozy-harvest-lib/dist/datacards/datacardOptions'
import log from 'cozy-logger'
-import { Routes as HarvestRoutes } from 'cozy-harvest-lib'
+import { HarvestRoutes } from 'cozy-harvest-lib'
import { closeApp, openApp } from 'hooks/useOpenApp'
import { getKonnector } from 'ducks/konnectors'
diff --git a/src/components/Konnector.spec.jsx b/src/components/Konnector.spec.jsx
index 1bafc7d575..f72fcc3798 100644
--- a/src/components/Konnector.spec.jsx
+++ b/src/components/Konnector.spec.jsx
@@ -9,7 +9,7 @@ import { StatelessKonnector } from './Konnector'
import { act } from 'react-dom/test-utils'
jest.mock('cozy-harvest-lib', () => ({
- Routes: ({ konnector, triggers, onDismiss }) => (
+ HarvestRoutes: ({ konnector, triggers, onDismiss }) => (
{konnector.slug}
diff --git a/src/containers/App.spec.jsx b/src/containers/App.spec.jsx
index 8ea3a353f3..92219bcdd6 100644
--- a/src/containers/App.spec.jsx
+++ b/src/containers/App.spec.jsx
@@ -20,7 +20,7 @@ jest.mock('cozy-device-helper', () => ({
}))
jest.mock('cozy-harvest-lib', () => ({
- Routes: ({ konnector, triggers, onDismiss }) => (
+ HarvestRoutes: ({ konnector, triggers, onDismiss }) => (
{konnector.slug}
diff --git a/src/targets/intents/HarvestRoute.jsx b/src/targets/intents/KonnectorRoutes.jsx
similarity index 88%
rename from src/targets/intents/HarvestRoute.jsx
rename to src/targets/intents/KonnectorRoutes.jsx
index 91860b5203..f53e883c97 100644
--- a/src/targets/intents/HarvestRoute.jsx
+++ b/src/targets/intents/KonnectorRoutes.jsx
@@ -1,12 +1,12 @@
import React, { useEffect, useState } from 'react'
-import { Routes } from 'cozy-harvest-lib'
+import { HarvestRoutes } from 'cozy-harvest-lib'
import { useParams } from 'react-router-dom'
import CozyTheme from 'cozy-ui/transpiled/react/providers/CozyTheme'
import { useClient } from 'cozy-client'
import Intents from 'cozy-interapp'
import datacardOptions from 'cozy-harvest-lib/dist/datacards/datacardOptions'
-export const HarvestRoutes = ({ intentData, intentId }) => {
+export const KonnectorRoutes = ({ intentData, intentId }) => {
const { konnectorSlug } = useParams()
const client = useClient()
@@ -22,7 +22,7 @@ export const HarvestRoutes = ({ intentData, intentId }) => {
return (
- (service ? service.cancel() : undefined)}
diff --git a/src/targets/intents/index.jsx b/src/targets/intents/index.jsx
index 6c7d61fc14..87c7590bdf 100644
--- a/src/targets/intents/index.jsx
+++ b/src/targets/intents/index.jsx
@@ -11,7 +11,7 @@ import IconSprite from 'cozy-ui/transpiled/react/Icon/Sprite'
import IntentHandler from 'containers/IntentHandler'
import AppWrapper, { AppContext } from 'components/AppWrapper'
-import { HarvestRoutes } from './HarvestRoute'
+import { KonnectorRoutes } from './KonnectorRoutes'
document.addEventListener('DOMContentLoaded', () => {
const container = document.querySelector('[role=application]')
@@ -29,7 +29,7 @@ document.addEventListener('DOMContentLoaded', () => {
+
}
/>