Files
openchamber/packages
Bohdan Triapitsyn 8056fae275 Reduce React Doctor diagnostics in ModelControls (#1265)
* fix: reduce React Doctor diagnostics in ModelControls (69/88)

* Move EditModeIcon and IconBadge to module scope to prevent remount on every render

EditModeIcon and IconBadge were defined as React.FC inside ModelControls
function body, producing a new component type reference on every render
and forcing React to unmount/remount subtrees. Moves both to module
scope; EditModeIcon no longer closes over editToggleIconClass since all
callers already pass an explicit className prop.
2026-05-14 19:12:33 +03:00
..
2026-05-14 15:36:07 +03:00
2026-05-14 15:36:07 +03:00
2026-05-14 15:36:07 +03:00
2026-05-14 15:36:07 +03:00