Skip to content

Commit

Permalink
chore: rename variable name for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Dec 16, 2024
1 parent 1cae83d commit 347a598
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/edit/ItemSelector/CategorizedMenuGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const CategorizedMenuGroup = ({
onChangeItemsLimit(type)
}

const showHideMoreLabel = seeMore
const showFewerMoreLabel = seeMore
? i18n.t('Show fewer')
: i18n.t('Show more')

Expand All @@ -69,13 +69,13 @@ const CategorizedMenuGroup = ({
})}
{hasMore ? (
<MenuItem
ariaLabel={showHideMoreLabel}
ariaLabel={showFewerMoreLabel}
dense
key={`showmore${title}`}
onClick={toggleSeeMore}
label={
<button className={classes.showMoreButton}>
{showHideMoreLabel}
{showFewerMoreLabel}
</button>
}
/>
Expand Down

0 comments on commit 347a598

Please sign in to comment.