Skip to content

Commit

Permalink
Merge pull request #45535 from Expensify/jack-fix45445
Browse files Browse the repository at this point in the history
Disable the button when 0 selected
  • Loading branch information
luacmartins authored Jul 16, 2024
2 parents be29df2 + 10bea3b commit ac10c53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Search/SearchSelectedNarrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ function SearchSelectedNarrow({options, itemsLength}: SearchSelectedNarrowProps)
ref={buttonRef}
style={[styles.w100, styles.ph5]}
text={translate('workspace.common.selected', {selectedNumber: itemsLength})}
shouldShowRightIcon
isContentCentered
iconRight={Expensicons.DownArrow}
isDisabled={options.length === 0}
shouldShowRightIcon={options.length !== 0}
/>

<Modal
Expand Down

0 comments on commit ac10c53

Please sign in to comment.