diff --git a/src/execution/ChainInfo.tsx b/src/execution/ChainInfo.tsx index c1190ff9..c0674796 100644 --- a/src/execution/ChainInfo.tsx +++ b/src/execution/ChainInfo.tsx @@ -6,8 +6,8 @@ import ChainInfoItem from "../components/ChainInfoItem"; import ContentFrame from "../components/ContentFrame"; import { PendingChainInfoResults } from "../search/PendingResults"; import { useBCInfoStateInfo, useLatestBlockChainInfo } from "../useLatestBlock"; -import { RuntimeContext } from "../useRuntime"; import { useQuirks } from "../useQuirks"; +import { RuntimeContext } from "../useRuntime"; const ChainInfo: FC = () => { const { zilliqa, provider } = useContext(RuntimeContext); @@ -17,20 +17,20 @@ const ChainInfo: FC = () => { const BCInfo = useBCInfoStateInfo(latestBlockChainInfo); - let gridValues = "grid-rows-2 grid-cols-4" + let gridValues = "grid-rows-2 grid-cols-4"; if (quirks?.isZilliqa1) { - gridValues = "grid-rows-3 grid-cols-4" + gridValues = "grid-rows-3 grid-cols-4"; } - gridValues = "grid items-baseline gap-x-1 border-t border-b border-gray-200 bg-gray-100 text-sm " + gridValues; + gridValues = + "grid items-baseline gap-x-1 border-t border-b border-gray-200 bg-gray-100 text-sm " + + gridValues; // Return a table with rows containing the basic information of the most recent RECENT_SIZE blocks return (
{latestBlockChainInfo ? ( -
+
{ data={latestBlockChainInfo.NumTransactions} /> - { quirks?.isZilliqa1 && ( - - ) } - { quirks?.isZilliqa1 && ( - - ) - } - { quirks?.isZilliqa1 && ( + {quirks?.isZilliqa1 && ( - + )} - { quirks?.isZilliqa1 && ( - - + + + )} + {quirks?.isZilliqa1 && ( + + - ) - } + + )} + {quirks?.isZilliqa1 && ( + + + + )} { data={latestBlockChainInfo.TransactionRate.toFixed(5)} /> - { quirks?.isZilliqa1 && ( + {quirks?.isZilliqa1 && ( - + )} - {quirks?.isZilliqa1 && ( - - + {quirks?.isZilliqa1 && ( + + - )} + )}