diff --git a/apps/web/src/lib/wagmi/components/user-portfolio/PortfolioInfoRow.tsx b/apps/web/src/lib/wagmi/components/user-portfolio/PortfolioInfoRow.tsx index ac7cfcb178..be9d2ec618 100644 --- a/apps/web/src/lib/wagmi/components/user-portfolio/PortfolioInfoRow.tsx +++ b/apps/web/src/lib/wagmi/components/user-portfolio/PortfolioInfoRow.tsx @@ -1,11 +1,13 @@ -import { Badge } from '@sushiswap/ui' +import { Badge, classNames } from '@sushiswap/ui' import { NetworkIcon } from '@sushiswap/ui/icons/NetworkIcon' +import { useRouter } from 'next/navigation' import { FC, ReactElement } from 'react' import { ChainId } from 'sushi/chain' interface PortfolioInfoRow { id: string chainId: ChainId + href?: string icon: ReactElement leftContent: ReactElement rightContent: ReactElement | null @@ -15,13 +17,20 @@ export const PortfolioInfoRow: FC = ({ id, chainId, icon, + href, leftContent, rightContent, }) => { + const { push } = useRouter() return (
href && push(href)} + onKeyDown={() => href && push(href)} >
= ({ = ({ = ({ @@ -26,6 +27,9 @@ export const PortfolioALMPositions: FC = ({ = ({ = ({