Custom colors for bool params

This commit is contained in:
Willian Mitsuda 2021-09-18 17:43:47 -03:00
parent f662a8c72e
commit 698e2a365c
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ const DecodedParamsTable: React.FC<DecodedParamsTableProps> = ({
</AddressHighlighter>
<Copy value={r.toString()} />
</div>
) : paramTypes[i].type === "bool" ? (
<span className={`${r ? "text-green-700" : "text-red-700"}`}>
{r.toString()}
</span>
) : (
r.toString()
)}