Skip to content

Commit

Permalink
fix: update prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Oct 9, 2024
1 parent bef5536 commit 48701b2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/common/UserSwitchWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +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"
dataUmamiEvent="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="item-search"
dataUmamiEvent="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
dataUmami="sidebar-bookmarks"
dataUmamiEvent="sidebar-bookmarks"
onClick={() => goTo(BOOKMARKED_ITEMS_PATH)}
selected={pathname === BOOKMARKED_ITEMS_PATH}
text={t(BUILDER.BOOKMARKED_ITEMS_TITLE)}
icon={<BookmarkIcon />}
/>
<MenuItem
dataUmami="sidebar-published"
dataUmamiEvent="sidebar-published"
onClick={() => goTo(PUBLISHED_ITEMS_PATH)}
selected={pathname === PUBLISHED_ITEMS_PATH}
text={t(BUILDER.NAVIGATION_PUBLISHED_ITEMS_TITLE)}
icon={<LibraryBigIcon />}
/>
<MenuItem
dataUmami="sidebar-trash"
dataUmamiEvent="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
dataUmami="sidebar-home"
dataUmamiEvent="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=7c018f62fba7b92fc3142f35f02b19003342ebb2"
resolution: "@graasp/ui@https://github.com/graasp/graasp-ui.git#commit=e6352ee5b0dcf339561e912f2337e18f40dfa152"
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/9528b58de35f898bd1b94d0875992aea92950d64c79a448bf220676f258074f604012a691664e3ea2c5e7ba4687220c3808188eadfea115acbfdf0126930cc0e
checksum: 10/94e40edbc6dadc8393c002737dbcec4ace85ba6e32e2f6b0a5ba99d3462cf38a576a45f293d32f93041f71c2581a91a5834dc46e76071db35d7e97e7a08666ab
languageName: node
linkType: hard

Expand Down

0 comments on commit 48701b2

Please sign in to comment.