From 362433e29d3a5c873709ecf48b6343ca31fa45f6 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Tue, 8 Oct 2024 13:03:35 +0200 Subject: [PATCH] fix: update from ui data --- src/components/common/UserSwitchWrapper.tsx | 1 + src/components/item/ItemSearch.tsx | 2 +- src/components/main/MainMenu.tsx | 8 ++++---- yarn.lock | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/common/UserSwitchWrapper.tsx b/src/components/common/UserSwitchWrapper.tsx index 50df7c1e5..f2ac9722b 100644 --- a/src/components/common/UserSwitchWrapper.tsx +++ b/src/components/common/UserSwitchWrapper.tsx @@ -49,6 +49,7 @@ const UserSwitchWrapper = ({ ButtonContent }: Props): JSX.Element => { seeProfileButtonId={HEADER_MEMBER_MENU_SEE_PROFILE_BUTTON_ID} buildMemberMenuItemId={buildMemberMenuItemId} avatar={} + dataUmami="header-avatar" /> ); }; diff --git a/src/components/item/ItemSearch.tsx b/src/components/item/ItemSearch.tsx index 841e54b31..59188db5d 100644 --- a/src/components/item/ItemSearch.tsx +++ b/src/components/item/ItemSearch.tsx @@ -51,7 +51,7 @@ export const useItemSearch = ({ inputBaseId={ITEM_SEARCH_INPUT_ID} placeholder={translateBuilder(BUILDER.ITEM_SEARCH_PLACEHOLDER)} size="small" - dataUmami={{ event: 'item-search', page: window.location.pathname }} + dataUmami="item-search" /> ); return { text: searchText, input: itemSearchInput }; diff --git a/src/components/main/MainMenu.tsx b/src/components/main/MainMenu.tsx index b4b1c7790..8e20a0bd9 100644 --- a/src/components/main/MainMenu.tsx +++ b/src/components/main/MainMenu.tsx @@ -68,21 +68,21 @@ const MainMenu = (): JSX.Element | null => { member.type === AccountType.Individual ? ( <> goTo(BOOKMARKED_ITEMS_PATH)} selected={pathname === BOOKMARKED_ITEMS_PATH} text={t(BUILDER.BOOKMARKED_ITEMS_TITLE)} icon={} /> goTo(PUBLISHED_ITEMS_PATH)} selected={pathname === PUBLISHED_ITEMS_PATH} text={t(BUILDER.NAVIGATION_PUBLISHED_ITEMS_TITLE)} icon={} /> goTo(RECYCLE_BIN_PATH)} selected={pathname === RECYCLE_BIN_PATH} text={t(BUILDER.RECYCLE_BIN_TITLE)} @@ -96,7 +96,7 @@ const MainMenu = (): JSX.Element | null => { goTo(HOME_PATH)} selected={pathname === HOME_PATH} icon={} diff --git a/yarn.lock b/yarn.lock index 58aaef660..25587a8ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1690,7 +1690,7 @@ __metadata: "@graasp/ui@github:graasp/graasp-ui#main-umami": version: 5.2.1 - resolution: "@graasp/ui@https://github.com/graasp/graasp-ui.git#commit=94be7a602cfc366776f0b5a9d4ef6f9cd931ce63" + resolution: "@graasp/ui@https://github.com/graasp/graasp-ui.git#commit=7c018f62fba7b92fc3142f35f02b19003342ebb2" dependencies: http-status-codes: "npm:2.3.0" interweave: "npm:13.1.0" @@ -1719,7 +1719,7 @@ __metadata: react-i18next: ^13.0.0 || ^14.0.0 || ^15.0.0 react-router-dom: ^6.11.0 stylis: ^4.1.3 - checksum: 10/f7d18f558a6571e3f412e39083ac0a0156fc220840a0b54f034877823d90b257b17fdcd0a1d2d7f00867456fc423547960b93baa03cc9b2ae34440b8d8c23c67 + checksum: 10/9528b58de35f898bd1b94d0875992aea92950d64c79a448bf220676f258074f604012a691664e3ea2c5e7ba4687220c3808188eadfea115acbfdf0126930cc0e languageName: node linkType: hard