Skip to content

Commit

Permalink
show tx pool button only on mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
radumojic committed Nov 13, 2024
1 parent db02951 commit 24fe2f0
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/pages/Transactions/Transactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
useGetPage,
useGetTransactionFilters,
useFetchTransactions,
useGetShardText
useGetShardText,
useIsMainnet
} from 'hooks';
import { activeNetworkSelector } from 'redux/selectors';
import { transactionsRoutes } from 'routes';
Expand All @@ -20,6 +21,7 @@ export const Transactions = () => {
const [searchParams] = useSearchParams();
const getShardText = useGetShardText();
const urlParams = useGetTransactionFilters();
const isMainnet = useIsMainnet();
const { senderShard, receiverShard } = urlParams;

const { firstPageRefreshTrigger } = useGetPage();
Expand Down Expand Up @@ -82,15 +84,17 @@ export const Transactions = () => {
</>
)}
<PulsatingLed className='mx-2' />
<div className='d-flex align-items-center flex-wrap gap-2'>
<NetworkLink
to={transactionsRoutes.transactionsInPool}
className='btn btn-sm btn-dark-gradient'
>
Transaction Pool
</NetworkLink>
<MethodList />
</div>
{isMainnet && (
<div className='d-flex align-items-center flex-wrap gap-2'>
<NetworkLink
to={transactionsRoutes.transactionsInPool}
className='btn btn-sm btn-dark-gradient'
>
Transaction Pool
</NetworkLink>
<MethodList />
</div>
)}
</h5>
}
/>
Expand Down

0 comments on commit 24fe2f0

Please sign in to comment.