Skip to content

Commit

Permalink
fix: update from ui data
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Oct 8, 2024
1 parent 1674aa5 commit 362433e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/components/common/UserSwitchWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const UserSwitchWrapper = ({ ButtonContent }: Props): JSX.Element => {
seeProfileButtonId={HEADER_MEMBER_MENU_SEE_PROFILE_BUTTON_ID}
buildMemberMenuItemId={buildMemberMenuItemId}
avatar={<MemberAvatar id={member?.id} />}
dataUmami="header-avatar"
/>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/item/ItemSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
8 changes: 4 additions & 4 deletions src/components/main/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ const MainMenu = (): JSX.Element | null => {
member.type === AccountType.Individual ? (
<>
<MenuItem
id="sidebar-bookmarks"
dataUmami="sidebar-bookmarks"
onClick={() => goTo(BOOKMARKED_ITEMS_PATH)}
selected={pathname === BOOKMARKED_ITEMS_PATH}
text={t(BUILDER.BOOKMARKED_ITEMS_TITLE)}
icon={<BookmarkIcon />}
/>
<MenuItem
id="sidebar-published"
dataUmami="sidebar-published"
onClick={() => goTo(PUBLISHED_ITEMS_PATH)}
selected={pathname === PUBLISHED_ITEMS_PATH}
text={t(BUILDER.NAVIGATION_PUBLISHED_ITEMS_TITLE)}
icon={<LibraryBigIcon />}
/>
<MenuItem
id="sidebar-trash"
dataUmami="sidebar-trash"
onClick={() => goTo(RECYCLE_BIN_PATH)}
selected={pathname === RECYCLE_BIN_PATH}
text={t(BUILDER.RECYCLE_BIN_TITLE)}
Expand All @@ -96,7 +96,7 @@ const MainMenu = (): JSX.Element | null => {
<Stack direction="column" height="100%" justifyContent="space-between">
<Box>
<MenuItem
id="sidebar-home"
dataUmami="sidebar-home"
onClick={() => goTo(HOME_PATH)}
selected={pathname === HOME_PATH}
icon={<HomeIcon />}
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 362433e

Please sign in to comment.