@@ -15,8 +15,13 @@ const StatelessTransaction = props => {
15 const { setUserApproval, userApproval } = props
15 const { setUserApproval, userApproval } = props
16 const { canSend, handleSubmit } = props
16 const { canSend, handleSubmit } = props
18+ // setState doesn't seem to work in SetProxy/handleSubmit, so just
19+ // modifying the DOM manually here. (https://imgur.com/a/i0Qsyq1)
18 const sendTxn = (e) => {
21 const sendTxn = (e) => {
19 e.target.setAttribute("disabled", true);
22 e.target.setAttribute("disabled", true);
23+ let spinner = e.target.querySelectorAll('.btn-spinner')[0];
24+ spinner.classList.remove('hide');
20 handleSubmit()
25 handleSubmit()
@@ -157,7 +162,10 @@ const StatelessTransaction = props => {
157 disabled={ !canSend }
162 disabled={ !canSend }
158 onClick={ sendTxn }
163 onClick={ sendTxn }
165+ <span className="relative">
166+ <span className="btn-spinner hide"></span>
160− { 'Send Transaction' }
167+ { 'Send Transaction' }
161 </Button>
169 </Button>
163 const sendDialogue = web3.matchWith({
171 const sendDialogue = web3.matchWith({