-
Notifications
You must be signed in to change notification settings - Fork 360
fix: Only hide first wallet if mobile pairing is enabled #3627
Conversation
|
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
Pull Request Test Coverage Report for Build 1945356973
💛 - Coveralls |
iamacook
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sleek approach!
| // Hides first wallet in Onboard modal (pairing module) | ||
| useEffect(() => { | ||
| const style = document.createElement('style') | ||
| style.innerHTML = '.bn-onboard-modal-select-wallets li:first-of-type {display: none;}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extract this into a constant.
|
E2E Tests Failed Failed tests:
|
6aa730f to
00ea436
Compare
iamacook
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
it seems that only the the GC was the one not supporting the pairing (or at least is the only network not showing the option to pair it). |
What it solves
Resolves #3624
How this PR fixes it
Instead of normally importing the css within
PairingDetailsand leaving it there we now import it on mount and remove it once the component unmounts.Additional refactors
wrapInSuspensewas moved closer to the component that required it (PairingDetails)How to test it
Screenshot