From c3ef591df1d5e2071968ad0cb1ea1dbaf15cc82d Mon Sep 17 00:00:00 2001 From: pahor167 Date: Sun, 7 Jul 2024 10:52:27 +0200 Subject: [PATCH 1/2] explorer fix --- apps/web/components/faucet-status.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/components/faucet-status.tsx b/apps/web/components/faucet-status.tsx index 3346b9cef..b4e76eec1 100644 --- a/apps/web/components/faucet-status.tsx +++ b/apps/web/components/faucet-status.tsx @@ -1,5 +1,5 @@ -import { FC, useCallback, useEffect, useState } from 'react' import { inter } from 'components/request-form' +import { FC, useCallback, useEffect, useState } from 'react' import styles from 'styles/Form.module.css' import { Network, RequestRecord, RequestStatus } from 'types' import { subscribeRequest } from 'utils/firebase-client' @@ -95,7 +95,7 @@ const TxMessage = ({ className={inter.className} target="_blank" rel="noreferrer" - href={`https://explorer.celo.org/${network}/tx/${txHash}`} + href={network == 'dango' ? `https://celo-dango.blockscout.com/tx/${txHash}` : `https://explorer.celo.org/${network}/tx/${txHash}`} > View on Celo Explorer From 75c00e3a1cf69c723615bef6fd658b9de279b8e2 Mon Sep 17 00:00:00 2001 From: pahor167 Date: Sun, 7 Jul 2024 10:56:38 +0200 Subject: [PATCH 2/2] lint --- apps/web/components/faucet-status.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/components/faucet-status.tsx b/apps/web/components/faucet-status.tsx index b4e76eec1..fa4ffc235 100644 --- a/apps/web/components/faucet-status.tsx +++ b/apps/web/components/faucet-status.tsx @@ -1,5 +1,5 @@ -import { inter } from 'components/request-form' import { FC, useCallback, useEffect, useState } from 'react' +import { inter } from 'components/request-form' import styles from 'styles/Form.module.css' import { Network, RequestRecord, RequestStatus } from 'types' import { subscribeRequest } from 'utils/firebase-client' @@ -95,7 +95,11 @@ const TxMessage = ({ className={inter.className} target="_blank" rel="noreferrer" - href={network == 'dango' ? `https://celo-dango.blockscout.com/tx/${txHash}` : `https://explorer.celo.org/${network}/tx/${txHash}`} + href={ + network === 'dango' + ? `https://celo-dango.blockscout.com/tx/${txHash}` + : `https://explorer.celo.org/${network}/tx/${txHash}` + } > View on Celo Explorer