Skip to content

Commit

Permalink
feat: disable link to fiber graph nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Jan 3, 2025
1 parent f467cfd commit b7b7f0c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/pages/Home/Banner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useQuery } from '@tanstack/react-query'
import { BarChartIcon } from '@radix-ui/react-icons'
import { useTranslation } from 'react-i18next'
import { Tooltip } from 'antd'
import { Link } from '../../../components/Link'
import config from '../../../config'
import styles from './index.module.scss'
Expand Down Expand Up @@ -55,9 +56,17 @@ export default () => {
<Link to="https://www.ckbfiber.net/" target="_blank" rel="noopener noreferrer">
<span>{t(`banner.learn_more`)}</span>
</Link>
<Link to="/fiber/graph/nodes">
<span>{t('banner.find_nodes')}</span>
</Link>
<Tooltip title={t('banner.coming_soon')}>
<Link
to="/fiber/graph/nodes"
aria-disabled
onClick={(e: React.SyntheticEvent<HTMLAnchorElement>) => {
e.preventDefault()
}}
>
<span>{t('banner.find_nodes')}</span>
</Link>
</Tooltip>
</div>
</div>
)
Expand Down

0 comments on commit b7b7f0c

Please sign in to comment.