Run button UI

pull/5370/head
Aniket-Engg 3 years ago committed by Aniket
parent 4e88280f24
commit 30f9c1be81
  1. 10
      libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx

@ -107,10 +107,16 @@ export const SolidityUnitTesting = (props: SolidityUnitTestingProps) => {
// return this.generateFileActionElement
}
const updateRunAction = (currentFile: any) => {
const updateRunAction = (currentFile = null) => {
console.log('updateRunAction --currentFile-->', currentFile)
return (
<button id="runTestsTabRunAction" title="Run tests" data-id="testTabRunTestsTabRunAction" className="w-50 btn btn-primary">
<span className="fas fa-play ml-2"></span>
<label className="${css.labelOnBtn} btn btn-primary p-1 ml-2 m-0">Run</label>
</button>)
// const el = yo`
// <button id="runTestsTabRunAction" title="Run tests" data-id="testTabRunTestsTabRunAction" class="w-50 btn btn-primary" onclick="${() => this.runTests()}">
// <span class="fas fa-play ml-2"></span>
@ -176,7 +182,7 @@ export const SolidityUnitTesting = (props: SolidityUnitTestingProps) => {
</a>
</div>
<div className="d-flex p-2">
{/* updateRunAction() */}
{updateRunAction()}
{/* ${this.updateStopAction()} */}
</div>
{/* ${this.selectAll()}

Loading…
Cancel
Save