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 5baab63 commit b77c6f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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

0 comments on commit b77c6f3

Please sign in to comment.