diff --git a/package.json b/package.json index a3c6836142..897a044b4a 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "homepage": "https://github.com/cozy/cozy-home#readme", "dependencies": { "@cozy/minilog": "1.0.0", - "cozy-client": "^41.2.0", + "cozy-client": "^42.0.0", "cozy-device-helper": "2.7.0", "cozy-doctypes": "1.83.8", "cozy-flags": "3.0.1", diff --git a/src/components/Services.jsx b/src/components/Services.jsx index 16e3fb16bb..54620e2414 100644 --- a/src/components/Services.jsx +++ b/src/components/Services.jsx @@ -2,7 +2,7 @@ import React, { useMemo } from 'react' import PropTypes from 'prop-types' import sortBy from 'lodash/sortBy' import { connect } from 'react-redux' -import { useClient, useAppsInMaintenance, useQuery } from 'cozy-client' +import { useAppsInMaintenance, useQuery } from 'cozy-client' import { queryConnect } from 'cozy-client' import keyBy from 'lodash/keyBy' import has from 'lodash/has' @@ -27,8 +27,7 @@ import { export const Services = ({ installedKonnectors, suggestedKonnectorsQuery }) => { const { t } = useI18n() - const client = useClient() - const appsAndKonnectorsInMaintenance = useAppsInMaintenance(client) + const appsAndKonnectorsInMaintenance = useAppsInMaintenance() const appsAndKonnectorsInMaintenanceBySlug = keyBy( appsAndKonnectorsInMaintenance, 'slug' diff --git a/yarn.lock b/yarn.lock index 807e1bb355..f5198bbc0a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9010,16 +9010,16 @@ cozy-client-js@0.20.0: pouchdb-browser "7.0.0" pouchdb-find "7.0.0" -cozy-client@^41.2.0: - version "41.2.0" - resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-41.2.0.tgz#a2d72fabe6ba1be4bf5fee39a52a953b9c1dd6c1" - integrity sha512-e/YYLE06/kpW7s9qGxEmhvILcRRLs3oZhIDyGmsQfJbmsCthfAxCc291qLQwcqdDVzG8gEi/UNfUySJhqbEAYQ== +cozy-client@^42.0.0: + version "42.0.0" + resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-42.0.0.tgz#f23d53709be264ab67fb4b5e98f9a3ec5bd292d1" + integrity sha512-rgm06z39XyFDP2pk9X+zjEgDZ3KnuNCWlvdbIfz3wAkI9+TvJbMa7D/eUREbLG5iCCT4pROcLxwpZ8rwGyN4Yw== dependencies: "@cozy/minilog" "1.0.0" "@types/jest" "^26.0.20" "@types/lodash" "^4.14.170" btoa "^1.2.1" - cozy-stack-client "^41.2.0" + cozy-stack-client "^42.0.0" date-fns "2.29.3" json-stable-stringify "^1.0.1" lodash "^4.17.13" @@ -9279,6 +9279,15 @@ cozy-stack-client@^41.2.0: mime "^2.4.0" qs "^6.7.0" +cozy-stack-client@^42.0.0: + version "42.0.0" + resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-42.0.0.tgz#3af9ff207e4361a25f609c75d40f6c238bf2ee34" + integrity sha512-ltsSdmR9WfNPc5HBJlXDW4I+w/JeCISsVgT6+CAUb6DHWqXJAtm8re2NWi8Y5d1gBLdqW+2J1fkme0YU8VXpkA== + dependencies: + detect-node "^2.0.4" + mime "^2.4.0" + qs "^6.7.0" + cozy-tsconfig@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/cozy-tsconfig/-/cozy-tsconfig-1.2.0.tgz#17e61f960f139fae4d26cbac2254b9ab632b269e"