Part of
#89946 — OptionRowLHN compound component decomposition
Step
3 of 12 — depends on #89947 (Provider + context interface).
What
Two extractions in one PR:
OptionRow.OfflineWrapper (OfflineWithFeedback.tsx) — wraps OfflineWithFeedback; reads pendingAction and allReportErrors from RowContext.meta; renders children
OptionRow.ProductTrainingTooltip (ProductTrainingTooltip.tsx) — split from the existing OptionRowTooltipLayer; switches to a children API (drops the renderChildren render-prop, addressing the intent of #89751)
OptionRowTooltipLayer.tsx is deleted (or reduced to a thin re-export if needed for the transition).
Why
OfflineWithFeedback and the tooltip layer are independent concerns that should not share a file. Dropping renderChildren in favour of children aligns with the "no render-props for static composition" rule.
Acceptance criteria
OptionRow.OfflineWrapper accepts children, reads offline data from context
OptionRow.ProductTrainingTooltip accepts children, no renderChildren prop
OptionRowTooltipLayer file removed or empty re-export
- No visible behavior changes
Issue Owner
Current Issue Owner: @DylanDylann
Part of
#89946 — OptionRowLHN compound component decomposition
Step
3 of 12 — depends on #89947 (Provider + context interface).
What
Two extractions in one PR:
OptionRow.OfflineWrapper(OfflineWithFeedback.tsx) — wrapsOfflineWithFeedback; readspendingActionandallReportErrorsfromRowContext.meta; renderschildrenOptionRow.ProductTrainingTooltip(ProductTrainingTooltip.tsx) — split from the existingOptionRowTooltipLayer; switches to achildrenAPI (drops therenderChildrenrender-prop, addressing the intent of #89751)OptionRowTooltipLayer.tsxis deleted (or reduced to a thin re-export if needed for the transition).Why
OfflineWithFeedbackand the tooltip layer are independent concerns that should not share a file. DroppingrenderChildrenin favour ofchildrenaligns with the "no render-props for static composition" rule.Acceptance criteria
OptionRow.OfflineWrapperacceptschildren, reads offline data from contextOptionRow.ProductTrainingTooltipacceptschildren, norenderChildrenpropOptionRowTooltipLayerfile removed or empty re-exportIssue Owner
Current Issue Owner: @DylanDylann