From acf899ff43604fa183b387f87aa11f185d327465 Mon Sep 17 00:00:00 2001 From: Louise Wang Date: Wed, 30 Mar 2022 15:38:46 +0200 Subject: [PATCH] fix: changes by review --- package.json | 2 +- .../item/sharing/ItemPublishConfiguration.js | 4 +- src/components/main/DownloadButton.js | 2 +- src/config/notifier.js | 4 +- yarn.lock | 85 +++++++++---------- 5 files changed, 44 insertions(+), 53 deletions(-) diff --git a/package.json b/package.json index 316ec83ad..52c56d3a9 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "AGPL-3.0-only", "dependencies": { "@graasp/chatbox": "github:graasp/graasp-chatbox.git", - "@graasp/query-client": "github:graasp/graasp-query-client.git#147/exportHook", + "@graasp/query-client": "github:graasp/graasp-query-client.git", "@graasp/translations": "github:graasp/graasp-translations.git", "@graasp/ui": "github:graasp/graasp-ui.git", "@graasp/utils": "github:graasp/graasp-utils.git", diff --git a/src/components/item/sharing/ItemPublishConfiguration.js b/src/components/item/sharing/ItemPublishConfiguration.js index aec860dc0..3a108d379 100644 --- a/src/components/item/sharing/ItemPublishConfiguration.js +++ b/src/components/item/sharing/ItemPublishConfiguration.js @@ -10,7 +10,7 @@ import Looks3Icon from '@material-ui/icons/Looks3'; import CheckCircleIcon from '@material-ui/icons/CheckCircle'; import CancelIcon from '@material-ui/icons/Cancel'; import UpdateIcon from '@material-ui/icons/Update'; -import { MUTATION_KEYS, HOOK_KEYS } from '@graasp/query-client'; +import { MUTATION_KEYS, DATA_KEYS } from '@graasp/query-client'; import { useMutation, hooks, queryClient } from '../../../config/queryClient'; import CategorySelection from './CategorySelection'; import CustomizedTagsEdit from './CustomizedTagsEdit'; @@ -29,7 +29,7 @@ import { import { getValidationStatusFromItemValidations } from '../../../utils/itemValidation'; const { DELETE_ITEM_TAG, POST_ITEM_TAG, POST_ITEM_VALIDATION } = MUTATION_KEYS; -const { buildItemValidationAndReviewsKey } = HOOK_KEYS; +const { buildItemValidationAndReviewsKey } = DATA_KEYS; const { useItemValidationAndReviews, useItemValidationStatuses, diff --git a/src/components/main/DownloadButton.js b/src/components/main/DownloadButton.js index be3e00200..bfc6bdcbc 100644 --- a/src/components/main/DownloadButton.js +++ b/src/components/main/DownloadButton.js @@ -27,7 +27,7 @@ export const DownloadButton = ({ id }) => { }, [data, isSuccess, id]); const handleDownload = () => { - downloadItem(id); + downloadItem({ id }); }; return (