15c3012199
* explorer-api: add nym node endpoints + UI to show nym-nodes and account balances * explorer-api: add endpoints to get operator rewards explorer-ui: show delegations on nym-nodes, show operator rewards, bug fixes * explorer-ui: change summary screen to only show nym-node stats * explorer-api: add unstable routes to get legacy mixnodes and gateways from the contract instead of the Nym API explorer-ui: adapt front-end to show less information in legacy nodes with plain bond types * explorer-ui: fix up source of legacy mixnode data * explorer-ui: add more account page null and undefined checks * explorer-ui: filter out null gateway versions * explorer-ui: sanitise gateway versions * explorer-ui: add more guards on the balance parts to check that greater than 0 * explorer-api: make /tmp/unstable/gateways endpoint compatible with the current Harbour Master API * explorer-ui: fix typo * cargo fmt * Add node-id, total stake and links to nodes list --------- Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com> Co-authored-by: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com>
35 lines
643 B
TypeScript
35 lines
643 B
TypeScript
import React from 'react'
|
|
import { Link as MuiLink, SxProps, Typography } from '@mui/material'
|
|
import Link from 'next/link'
|
|
|
|
type StyledLinkProps = {
|
|
to: string
|
|
children: React.ReactNode
|
|
target?: React.HTMLAttributeAnchorTarget
|
|
dataTestId?: string
|
|
color?: string
|
|
sx?: SxProps
|
|
}
|
|
|
|
const StyledLink = ({
|
|
to,
|
|
children,
|
|
dataTestId,
|
|
target,
|
|
color,
|
|
sx,
|
|
}: StyledLinkProps) => (
|
|
<Link
|
|
href={to}
|
|
target={target}
|
|
data-testid={dataTestId}
|
|
style={{ textDecoration: 'none' }}
|
|
>
|
|
<Typography component="a" sx={{ ...sx }} color={color}>
|
|
{children}
|
|
</Typography>
|
|
</Link>
|
|
)
|
|
|
|
export default StyledLink
|