Skip to content

Commit

Permalink
Typo correction
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyandreevsky committed Oct 23, 2024
1 parent 62007b6 commit 0df1586
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/app/validator/[hash]/Validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/layout/navbar/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
? <a href={item.exporerBaseUrl} rel={'noopener noreferrer'}>{children}</a>
? <a href={item.explorerBaseUrl} rel={'noopener noreferrer'}>{children}</a>
: children

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/constants/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
]

0 comments on commit 0df1586

Please sign in to comment.