Skip to content

Commit

Permalink
Switch Page navigation to React-Router Link component
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Mar 13, 2024
1 parent 8935596 commit a5803ee
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/pages/AppHome/FeaturedDAOCard.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Text, BoxProps, Image, HStack, Spacer, Flex, Box } from '@chakra-ui/react';
import { Text, BoxProps, Image, HStack, Spacer, Flex, Box, Link } from '@chakra-ui/react';
import { useTranslation } from 'react-i18next';
import { Link as RouterLink } from 'react-router-dom';
import { DAO_ROUTES } from '../../../constants/routes';
import { StyledBox } from '../../ui/containers/StyledBox';
import ExternalLink from '../../ui/links/ExternalLink';

interface DAOFeatureProps extends BoxProps {
iconSrc: string;
title: string;
Expand Down Expand Up @@ -52,13 +51,16 @@ export default function FeaturedDAOCard({
</Box>
<Flex>
<Spacer />
<ExternalLink
<Link
as={RouterLink}
color="gold.500"
_hover={{ color: 'gold.500-hover' }}
alignSelf="end"
textStyle="text-lg-mono-bold"
href={DAO_ROUTES.dao.relative(address)}
to={DAO_ROUTES.dao.relative(address)}
>
{t('featureLink')}
</ExternalLink>
</Link>
</Flex>
</StyledBox>
</Box>
Expand Down

0 comments on commit a5803ee

Please sign in to comment.