diff --git a/client/src/components/molecules/VersionNumbers/VersionTable.tsx b/client/src/components/molecules/VersionNumbers/VersionTable.tsx index 20b8f58..b9c05be 100644 --- a/client/src/components/molecules/VersionNumbers/VersionTable.tsx +++ b/client/src/components/molecules/VersionNumbers/VersionTable.tsx @@ -40,6 +40,34 @@ const VersionTableContracts = ({ ) +const VersionNumber = ({ + isLoading, + software, + version, + network +}: { + isLoading: boolean + software: string + version: string + network: string +}) => + isLoading ? ( + + ) : version ? ( + <> + + v{version} + + {network && `(${network})`} + + ) : ( + Could not get version + ) + const VersionTable = ({ data }: { data: VersionTableProps }) => (
@@ -60,16 +88,12 @@ const VersionTable = ({ data }: { data: VersionTableProps }) => ( {key === 'keeperContracts' && data.brizo.contracts && ( diff --git a/client/src/routes/Faucet.module.scss b/client/src/routes/Faucet.module.scss index d407fdb..c09811c 100644 --- a/client/src/routes/Faucet.module.scss +++ b/client/src/routes/Faucet.module.scss @@ -25,6 +25,13 @@ overflow-wrap: break-word; display: inline; } + + a:hover, + a:focus { + code { + color: inherit; + } + } } .error {
- {value.isLoading ? ( - - ) : value.version ? ( - <> - v{value.version} - {value.network && `(${value.network})`} - - ) : ( - 'Could not get version' - )} +