Custom colors for bool params
This commit is contained in:
parent
f662a8c72e
commit
698e2a365c
|
@ -47,6 +47,10 @@ const DecodedParamsTable: React.FC<DecodedParamsTableProps> = ({
|
||||||
</AddressHighlighter>
|
</AddressHighlighter>
|
||||||
<Copy value={r.toString()} />
|
<Copy value={r.toString()} />
|
||||||
</div>
|
</div>
|
||||||
|
) : paramTypes[i].type === "bool" ? (
|
||||||
|
<span className={`${r ? "text-green-700" : "text-red-700"}`}>
|
||||||
|
{r.toString()}
|
||||||
|
</span>
|
||||||
) : (
|
) : (
|
||||||
r.toString()
|
r.toString()
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue