change spinner to sync

pull/5370/head
Joseph Izang 12 months ago
parent ae69c3a65c
commit 6732800fde
  1. 4
      apps/vyper/src/app/components/CompilerButton.tsx

@ -126,10 +126,10 @@ function CompilerButton({contract, setOutput, compilerUrl, resetCompilerState}:
return ( return (
<button data-id="compile" onClick={compileContract} title={contract} className="d-flex flex-column btn btn-primary w-100"> <button data-id="compile" onClick={compileContract} title={contract} className="d-flex flex-column btn btn-primary w-100">
<div className="d-flex justify-center align-item-center"> <div className="d-flex justify-content-center align-item-center">
{loadingSpinner ? <span className="fas fa-sync fa-pulse" role="status" aria-hidden="true" /> : null}
<span>Compile</span> <span>Compile</span>
<span className="overflow-hidden text-truncate text-nowrap">{contract}</span> <span className="overflow-hidden text-truncate text-nowrap">{contract}</span>
{loadingSpinner && <span className="fas fa-spinner fa-pulse" role="status" aria-hidden="true" />}
</div> </div>
</button> </button>
) )

Loading…
Cancel
Save