From 0df15862ae5b3bd81205b2655cb912c202d99cb9 Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 23 Oct 2024 15:34:01 +0300 Subject: [PATCH] Typo correction --- packages/frontend/src/app/validator/[hash]/Validator.js | 2 +- packages/frontend/src/components/layout/navbar/Dropdown.js | 2 +- .../frontend/src/components/layout/navbar/NetworkSelect.js | 2 +- packages/frontend/src/constants/networks.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/app/validator/[hash]/Validator.js b/packages/frontend/src/app/validator/[hash]/Validator.js index e70f97603..2040c3f58 100644 --- a/packages/frontend/src/app/validator/[hash]/Validator.js +++ b/packages/frontend/src/app/validator/[hash]/Validator.js @@ -33,7 +33,7 @@ function Validator ({ hash }) { const [withdrawals, setWithdrawals] = useState({ data: {}, props: { currentPage: 0 }, loading: true, error: false }) const [activeChartTab, setActiveChartTab] = useState(0) const baseUrl = process.env.NEXT_PUBLIC_BASE_URL - const activeNetwork = networks.find(network => network.exporerBaseUrl === baseUrl) + const activeNetwork = networks.find(network => network.explorerBaseUrl === baseUrl) const l1explorerBaseUrl = activeNetwork?.l1explorerBaseUrl || null const poseStatusColor = (validator.data?.proTxInfo?.state?.PoSeBanHeight > 0 && diff --git a/packages/frontend/src/components/layout/navbar/Dropdown.js b/packages/frontend/src/components/layout/navbar/Dropdown.js index 2d0bd5f00..f1feb2a9a 100644 --- a/packages/frontend/src/components/layout/navbar/Dropdown.js +++ b/packages/frontend/src/components/layout/navbar/Dropdown.js @@ -6,7 +6,7 @@ import './NetworkSelect.scss' // props.data - The data array [{ name: '', subname: '', disabled: boolean, link: '' }] function Dropdown ({ active, data }) { const ButtonContainer = ({ item, children }) => item.name !== active - ? {children} + ? {children} : children return ( diff --git a/packages/frontend/src/components/layout/navbar/NetworkSelect.js b/packages/frontend/src/components/layout/navbar/NetworkSelect.js index 8f04dcf10..1b2dd2ed9 100644 --- a/packages/frontend/src/components/layout/navbar/NetworkSelect.js +++ b/packages/frontend/src/components/layout/navbar/NetworkSelect.js @@ -7,7 +7,7 @@ import { networks } from '../../../constants/networks' function NetworkSelect () { const baseUrl = process.env.NEXT_PUBLIC_BASE_URL - const activeNetwork = networks.find(network => network.exporerBaseUrl === baseUrl) + const activeNetwork = networks.find(network => network.explorerBaseUrl === baseUrl) const [showDropdown, setShowDropdown] = useState(false) return ( diff --git a/packages/frontend/src/constants/networks.js b/packages/frontend/src/constants/networks.js index 345b27892..316ea5c43 100644 --- a/packages/frontend/src/constants/networks.js +++ b/packages/frontend/src/constants/networks.js @@ -3,14 +3,14 @@ export const networks = [ name: 'mainnet', subname: '', disabled: false, - exporerBaseUrl: 'https://platform-explorer.com', + explorerBaseUrl: 'https://platform-explorer.com', l1explorerBaseUrl: 'https://insight.dash.org/insight' }, { name: 'testnet', subname: '', disabled: false, - exporerBaseUrl: 'https://testnet.platform-explorer.com', + explorerBaseUrl: 'https://testnet.platform-explorer.com', l1explorerBaseUrl: 'http://insight.testnet.networks.dash.org:3001/insight' } ]