Skip to content

Commit

Permalink
show custom display name for label attr on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
JKarlavige committed Aug 26, 2024
1 parent 59237ea commit 0d81104
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/src/theme/NavbarItem/DropdownNavbarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ function DropdownNavbarItemMobile({
? thisVersion.customDisplay
: `${childItemProps.label} ${thisVersion?.isPrerelease ? " (Beta)" : ""}`;

// TODO: issue here setting label to custom display
childItemProps.label = versionDisplay;
return (
<NavbarItem
mobile
Expand All @@ -234,6 +232,7 @@ function DropdownNavbarItemMobile({
}
activeClassName="menu__link--active"
{...childItemProps}
label={versionDisplay}
key={i}
/>
);
Expand Down

0 comments on commit 0d81104

Please sign in to comment.