Custom colors for bool params
This commit is contained in:
parent
f662a8c72e
commit
698e2a365c
|
@ -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()
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue