Skip to content

refactor: extract OptionRowDraftIcon and OptionRowPinIcon leaves#4

Closed
BartekObudzinski wants to merge 1 commit into
simulated-baseline-89274-89592from
pr4-icon-leaves
Closed

refactor: extract OptionRowDraftIcon and OptionRowPinIcon leaves#4
BartekObudzinski wants to merge 1 commit into
simulated-baseline-89274-89592from
pr4-icon-leaves

Conversation

@BartekObudzinski

Copy link
Copy Markdown
Owner

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

What

  • New OptionRowDraftIcon and OptionRowPinIcon leaves own their own useTheme, useThemeStyles, useLocalize, and lazy-icon load.
  • OptionRowLHNCore drops inline pencil + pin JSX blocks and the useMemoizedLazyExpensifyIcons(['Pencil','Pin']) call.
  • Core no longer imports Icon or variables.

Each leaf returns null when its condition isn't met. No conditional hooks.

Independent of PR1.

@BartekObudzinski BartekObudzinski deleted the pr4-icon-leaves branch May 6, 2026 10:35
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