Skip to content

Commit

Permalink
Use text+spinner instead of just the spinner when fetching the decomp…
Browse files Browse the repository at this point in the history
…iled abi from heimdall
  • Loading branch information
portdeveloper committed Dec 20, 2024
1 parent 82bedc0 commit a30fdf7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,14 @@ const Home: NextPage = () => {
onClick={fetchAbiFromHeimdall}
disabled={network === "31337" || isHeimdallFetching}
>
{isHeimdallFetching ? <span className="loading loading-spinner"></span> : "Decompile (beta)"}
{isHeimdallFetching ? (
<div className="flex items-center gap-2">
<span className="loading loading-spinner loading-xs"></span>
<span>Decompiling contract...</span>
</div>
) : (
"Decompile (beta)"
)}
</button>
</div>
<div className="w-full flex flex-col items-center gap-2">
Expand Down

0 comments on commit a30fdf7

Please sign in to comment.