From 8b757ec9cc6afb112bb30c283c660e579241633a Mon Sep 17 00:00:00 2001 From: Kim Lan Phan Hoang Date: Thu, 25 Jul 2024 17:27:41 +0200 Subject: [PATCH] feat: update map to show thumbnails (#1377) --- package.json | 2 +- src/components/item/MapView.tsx | 1 + yarn.lock | 10 +++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8660a0a22..a1dc386ad 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@emotion/react": "11.13.0", "@emotion/styled": "11.13.0", "@graasp/chatbox": "3.1.0", - "@graasp/map": "1.16.0", + "@graasp/map": "1.17.0", "@graasp/query-client": "3.16.0", "@graasp/sdk": "4.21.0", "@graasp/translations": "1.32.0", diff --git a/src/components/item/MapView.tsx b/src/components/item/MapView.tsx index e1ceb8377..c5fdce8dd 100644 --- a/src/components/item/MapView.tsx +++ b/src/components/item/MapView.tsx @@ -74,6 +74,7 @@ const MapView = ({ useAddressFromGeolocation={hooks.useAddressFromGeolocation} useSuggestionsForAddress={hooks.useSuggestionsForAddress} useItemsInMap={hooks.useItemsInMap} + useItemThumbnailUrl={hooks.useItemThumbnailUrl} viewItem={viewItem} viewItemInBuilder={viewItemInBuilder} currentMember={currentMember} diff --git a/yarn.lock b/yarn.lock index e12923c4b..c18f921ce 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1832,9 +1832,9 @@ __metadata: languageName: node linkType: hard -"@graasp/map@npm:1.16.0": - version: 1.16.0 - resolution: "@graasp/map@npm:1.16.0" +"@graasp/map@npm:1.17.0": + version: 1.17.0 + resolution: "@graasp/map@npm:1.17.0" dependencies: "@emotion/react": "npm:11.11.4" "@emotion/styled": "npm:11.11.5" @@ -1869,7 +1869,7 @@ __metadata: react: "*" react-dom: "*" react-i18next: ^14.0.0 - checksum: 10/2b2ae76d514c8d69c2db5c2c5de2af7b946c9afa42fa3065fa11d7e11d665ce3572511ee8e7739c19023ba4dfa3955d975f0000e65f80dbb6be34601a2b1ffee + checksum: 10/b7519312e1f2cc87cd13c9ca3159a47dd059b815c83f5474c7f094d516958ca4fd44fb21774272a887c4ec96a2b4534e4e5a81577304ac47b4ccbb4e0b4ed4d8 languageName: node linkType: hard @@ -8150,7 +8150,7 @@ __metadata: "@emotion/react": "npm:11.13.0" "@emotion/styled": "npm:11.13.0" "@graasp/chatbox": "npm:3.1.0" - "@graasp/map": "npm:1.16.0" + "@graasp/map": "npm:1.17.0" "@graasp/query-client": "npm:3.16.0" "@graasp/sdk": "npm:4.21.0" "@graasp/translations": "npm:1.32.0"