Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
style: remove unused signInstruction replaced by modal
Browse files Browse the repository at this point in the history
  • Loading branch information
paouvrard committed May 6, 2021
1 parent 6b015f4 commit 4d9b102
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/html/erc20-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ <h2>New Transfer</h2>
</div>
</div>
<footer>
<p data-behavior="signInstruction" style="display:none">
Please confirm the transaction in your connected Ethereum wallet...
</p>
<button disabled data-behavior="erc20Submit" class="full-width">
Approve transfer
</button>
Expand Down Expand Up @@ -154,15 +151,13 @@ <h2 class="modal-section__label">Enter a token address</h2>
select.disabled = true;
submit.disabled = true;
cancel.disabled = true;
window.dom.show('signInstruction')
}

function enableForm() {
amount.disabled = false;
select.disabled = false;
submit.disabled = false;
cancel.disabled = false;
window.dom.hide('signInstruction')
}

select.onclick = () => {
Expand Down
5 changes: 0 additions & 5 deletions src/html/erc20n-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ <h2>New Transfer</h2>
</div>
</div>
<footer>
<p data-behavior="signInstruction" style="display:none">
Redirecting to NEAR wallet...
</p>
<button disabled data-behavior="erc20nSubmit" class="full-width">
Submit transfer
</button>
Expand Down Expand Up @@ -143,15 +140,13 @@ <h2 class="modal-section__label">Enter a token address</h2>
select.disabled = true;
submit.disabled = true;
cancel.disabled = true;
window.dom.show('signInstruction')
}

function enableForm() {
amount.disabled = false;
select.disabled = false;
submit.disabled = false;
cancel.disabled = false;
window.dom.hide('signInstruction')
}

select.onclick = () => {
Expand Down

0 comments on commit 4d9b102

Please # to comment.