diff --git a/.changelog/1065.bugfix.md b/.changelog/1065.bugfix.md new file mode 100644 index 000000000..b43df989a --- /dev/null +++ b/.changelog/1065.bugfix.md @@ -0,0 +1 @@ +Fix Testnet Faucet links diff --git a/src/app/pages/ParatimeDashboardPage/ParaTimeSnapshot.tsx b/src/app/pages/ParatimeDashboardPage/ParaTimeSnapshot.tsx index d1bf2ffac..6f4cb614e 100644 --- a/src/app/pages/ParatimeDashboardPage/ParaTimeSnapshot.tsx +++ b/src/app/pages/ParatimeDashboardPage/ParaTimeSnapshot.tsx @@ -71,7 +71,7 @@ export const ParaTimeSnapshot: FC<{ scope: SearchScope }> = ({ scope }) => { {scope.network === Network.mainnet && } - {scope.network === Network.testnet && } + {scope.network === Network.testnet && } diff --git a/src/app/pages/ParatimeDashboardPage/TestnetFaucet.tsx b/src/app/pages/ParatimeDashboardPage/TestnetFaucet.tsx index cd704bbc6..fd0e5048c 100644 --- a/src/app/pages/ParatimeDashboardPage/TestnetFaucet.tsx +++ b/src/app/pages/ParatimeDashboardPage/TestnetFaucet.tsx @@ -6,7 +6,8 @@ import { styled } from '@mui/material/styles' import Typography from '@mui/material/Typography' import { SnapshotCard } from '../../components/Snapshots/SnapshotCard' import { COLORS } from '../../../styles/theme/colors' -import { testnet } from '../../utils/externalLinks' +import { faucet } from '../../utils/externalLinks' +import { Layer } from '../../../oasis-nexus/api' const StyledBox = styled(Box)(({ theme }) => ({ gap: theme.spacing(5), @@ -17,7 +18,11 @@ const StyledBox = styled(Box)(({ theme }) => ({ justifyContent: 'space-between', })) -export const TestnetFaucet: FC = () => { +type TestnetFaucetProps = { + layer: Layer +} + +export const TestnetFaucet: FC = ({ layer }) => { const { t } = useTranslation() return ( @@ -32,7 +37,7 @@ export const TestnetFaucet: FC = () => { {t('testnetFaucet.description')}