mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
fix(admin): keep the dev notification buttons mounted while the panel updates
The desktop panel declared its button component inside its render, so every state change (each lookup landing, each send starting and ending) made a new component type and React remounted every button: focus and hover were lost, and a click that arrived during a re-render went to a button that was no longer there. Btn now lives at module level and takes the send in flight as a prop, as the phone panel's Btn already does. FE-ADMIN-DEVNOTIF-017 holds a button across the lookups landing and expects the same element; it fails with the old panel.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
"@typescript-eslint/no-unused-vars": 117,
|
||||
"react-hooks/immutability": 28,
|
||||
"max-lines-per-function": 127,
|
||||
"react-hooks/static-components": 50,
|
||||
"react-hooks/static-components": 38,
|
||||
"react-hooks/preserve-manual-memoization": 12,
|
||||
"no-useless-assignment": 7,
|
||||
"no-empty": 19,
|
||||
|
||||
Reference in New Issue
Block a user