-
Notifications
You must be signed in to change notification settings - Fork 82
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
frontend: create coin control sub-component #2872
frontend: create coin control sub-component #2872
Conversation
8fb03ee
to
ec4142d
Compare
(rebased) |
e4c3c44
to
ff0dfd4
Compare
rebased / also amended the commit message to explain the change from #2870 |
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.
nice thank you 👍
tested LGTM with some nits.
private toggleCoinControl = () => { | ||
this.setState(({ activeCoinControl }) => { | ||
if (activeCoinControl) { | ||
this.selectedUTXOs = {}; |
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.
note for myself: I was quickly confused why this is gone, but it looks like toggleCoinControl was only used to open the dialog and activeCoinControl never true.
@@ -601,7 +564,7 @@ class Send extends Component<Props, State> { | |||
{t('send.button')} | |||
</Button> | |||
<BackButton | |||
disabled={activeCoinControl || activeScanQR} | |||
disabled={activeScanQR} |
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.
ack 👍
ff0dfd4
to
e389681
Compare
Create a sub-component for the coin control toggle and dialog (utxo selection) to make the send.tsx component smaller and easier to understand. We can remove `activeCoinControl` from the back button disable property because a) the use can already navigate back using ESC, and b) the back button is not clickable while there is an active overlay.
e389681
to
d1a2916
Compare
@thisconnect thanks! (first push is rebase, second addressed the change requests). PTAL. |
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.
LGTM
After: #2870 and #2866
Create a sub-component for the coin control (toggle and utxo selection dialog) to make the
send.tsx
component smaller and easier to understand.