@@ -15,8 +15,13 @@ const StatelessTransaction = props => {
1515 const { setUserApproval, userApproval } = props
1616 const { canSend, handleSubmit } = props
1717
18+ // setState doesn't seem to work in SetProxy/handleSubmit, so just
19+ // modifying the DOM manually here. (https://imgur.com/a/i0Qsyq1)
20+
1821 const sendTxn = (e) => {
1922 e.target.setAttribute("disabled", true);
23+ let spinner = e.target.querySelectorAll('.btn-spinner')[0];
24+ spinner.classList.remove('hide');
2025 handleSubmit()
2126 }
2227
@@ -157,7 +162,10 @@ const StatelessTransaction = props => {
157162 disabled={ !canSend }
158163 onClick={ sendTxn }
159164 >
160− { 'Send Transaction' }
165+ <span className="relative">
166+ <span className="btn-spinner hide"></span>
167+ { 'Send Transaction' }
168+ </span>
161169 </Button>
162170
163171 const sendDialogue = web3.matchWith({