-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaced WalletConnect request popup with ActionSheet. #2417
Conversation
Ok. I probably should have explicitly said how to implement this. I did do a writeup on how I would like this done in the issue, but I'll break it down more finely here, as possibly it wasn't clear.
This way, most of the new code can be rolled into the WalletConnectRequestWidget The final solution should look something like this:
You would then pass these params to the WalletConnectRequestWidget widget from ActionSheetDialog (new constructor) see: https://app.zeplin.io/project/5d088205bff2d15de6a4397b/screen/6012c08d598d3aaf4482cdb7 (but ignore the colouring for now, that is being done separately). You may need an extra path in the ActionSheetCallback interface At a future date, in a separate PR we will probably separate out the message and request types from ActionSheetDialog and start a new RequestSheetDialog class. The code you wrote does look good and solid, but having a separate ActionSheetDialog is a little confusing in terms of design. |
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 see design notes in the issue and expanded in the thread.
Hi @JamesSmartCell thanks for the detailed explanation.
|
@JamesSmartCell I have updated the code to use ActionSheet. Let me know if I need to make any change. |
Thanks for the refactor, yes this definitely looks like what I was expecting! It fits with the existing flow. Later we'll split ActionSheetDialog as it's starting to get a bit too full. |
Yes splitting the ActionSheetDialog will be good. I think this can be merged now. Let me know once you test it and if any changes are required. |
Closes #2228.