diff --git a/app/daos/[daoAddress]/layout.tsx b/app/daos/[daoAddress]/layout.tsx index edc8a86031..4143f3ba17 100644 --- a/app/daos/[daoAddress]/layout.tsx +++ b/app/daos/[daoAddress]/layout.tsx @@ -1,6 +1,7 @@ 'use client'; import { Button, Center, Text, VStack } from '@chakra-ui/react'; +import { useRouter } from 'next/navigation'; import { ReactNode } from 'react'; import { useTranslation } from 'react-i18next'; import { useNetwork } from 'wagmi'; @@ -16,6 +17,7 @@ import { function InvalidSafe() { const { chain } = useNetwork(); const { t } = useTranslation('common'); + const router = useRouter(); return (
{t('invalidSafe1', { chain: chain ? chain.name : disconnectedChain.name })} {t('invalidSafe2')} - +
); diff --git a/src/components/pages/DaoDashboard/Info/ParentLink.tsx b/src/components/pages/DaoDashboard/Info/ParentLink.tsx index 81807b8653..0caf350d2e 100644 --- a/src/components/pages/DaoDashboard/Info/ParentLink.tsx +++ b/src/components/pages/DaoDashboard/Info/ParentLink.tsx @@ -1,4 +1,5 @@ import { Link, HStack, Image, Text, LinkProps } from '@chakra-ui/react'; +import NextLink from 'next/link'; import { useTranslation } from 'react-i18next'; import { DAO_ROUTES } from '../../../../constants/routes'; import { useFractal } from '../../../../providers/App/AppProvider'; @@ -22,6 +23,7 @@ export function ParentLink({ ...rest }: LinkProps) { _hover={{ textDecoration: 'none', color: 'gold.500-hover' }} href={DAO_ROUTES.dao.relative(nodeHierarchy.parentAddress)} marginBottom="1rem" + as={NextLink} {...rest} > diff --git a/src/components/ui/cards/DAOInfoCard.tsx b/src/components/ui/cards/DAOInfoCard.tsx index 2cd5897e3b..b1147153dd 100644 --- a/src/components/ui/cards/DAOInfoCard.tsx +++ b/src/components/ui/cards/DAOInfoCard.tsx @@ -1,4 +1,5 @@ import { Box, Flex, Text, Spacer, HStack, FlexProps, Link, Center } from '@chakra-ui/react'; +import NextLink from 'next/link'; import { DAO_ROUTES } from '../../../constants/routes'; import useDisplayName from '../../../hooks/utils/useDisplayName'; import { useFractal } from '../../../providers/App/AppProvider'; @@ -74,6 +75,7 @@ export function DAOInfoCard({ > {childCount && childCount > 0 && ( - + @@ -36,7 +38,7 @@ export function ErrorFallback() { /> - +