Add different highlight color on testnets
This commit is contained in:
parent
76182a4efe
commit
26f66cb4fb
|
@ -5,7 +5,13 @@ const Footer: React.FC = () => {
|
|||
const { provider } = useContext(RuntimeContext);
|
||||
|
||||
return (
|
||||
<div className="w-full px-2 py-1 border-t border-t-gray-100 text-xs bg-link-blue text-gray-200 text-center">
|
||||
<div
|
||||
className={`w-full px-2 py-1 border-t border-t-gray-100 text-xs ${
|
||||
provider?.network.chainId === 1
|
||||
? "bg-link-blue text-gray-200"
|
||||
: "bg-orange-400 text-white"
|
||||
} text-center`}
|
||||
>
|
||||
{provider ? (
|
||||
<>Using Erigon node at {provider.connection.url}</>
|
||||
) : (
|
||||
|
|
Loading…
Reference in New Issue