Skip to content

refactor: badges own actionBadgeText translation#2

Closed
BartekObudzinski wants to merge 1 commit into
simulated-baseline-89274-89592from
pr2-badges-own-text
Closed

refactor: badges own actionBadgeText translation#2
BartekObudzinski wants to merge 1 commit into
simulated-baseline-89274-89592from
pr2-badges-own-text

Conversation

@BartekObudzinski

Copy link
Copy Markdown
Owner

Part 2 of 5 in the further-decomposition split of OptionRowLHN, layered on top of Expensify#89274 and Expensify#89592.

What

  • OptionRowErrorBadge and OptionRowInfoBadge now take raw actionBadge and derive their own label via useLocalize + useEnvironment.
  • OptionRowLHNCore passes actionBadge={optionItem.actionBadge} instead of pre-translated text. Core's local actionBadgeText var stays only for accessibility-label assembly (will be removed in a later PR that pushes accessibility into Pressable).

Why

Removes prop-drilling of derived strings. Each badge owns the data it renders.

Independent of PR1.

@BartekObudzinski BartekObudzinski deleted the pr2-badges-own-text branch May 6, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant