Skip to content

Commit

Permalink
feat(mespapiers-lib): Remove dev button to open harvest modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed Jan 18, 2023
1 parent 32d2f28 commit a5e6d82
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/cozy-mespapiers-lib/src/components/Papers/PapersList.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useMemo, useState } from 'react'
import PropTypes from 'prop-types'
import { useNavigate } from 'react-router-dom'
import flag from 'cozy-flags'

import { LaunchTriggerCard } from 'cozy-harvest-lib'
Expand All @@ -25,8 +24,6 @@ import {
} from '../../helpers/queries'

const ConnectorItem = ({ papers }) => {
const navigate = useNavigate()

const connectorSlug = papers?.list?.[0]?.cozyMetadata?.createdByApp
const queryTriggers = buildTriggersQueryByConnectorSlug(
connectorSlug,
Expand Down Expand Up @@ -59,16 +56,6 @@ const ConnectorItem = ({ papers }) => {
konnectorRoot={`harvest/${connectorSlug}/accounts/${connectorAccount}`}
/>
<Divider />
<button
onClick={() => {
navigate({
pathname: `harvest/${connectorSlug}`
})
}}
>
Open Harvest for this connector
</button>
<Divider />
</>
)
}
Expand Down

0 comments on commit a5e6d82

Please sign in to comment.