From 499513851ac28f738bd013de262d038ab4de9b8b Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Tue, 14 May 2024 12:35:09 +0200 Subject: [PATCH] fix: direct to lockstacks --- app/components/home/stacking-promo-card.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/home/stacking-promo-card.tsx b/app/components/home/stacking-promo-card.tsx index edec65923..8dc1579de 100644 --- a/app/components/home/stacking-promo-card.tsx +++ b/app/components/home/stacking-promo-card.tsx @@ -1,11 +1,11 @@ import { AbstractBtcChartSvg } from '@components/svg/abstract-btc-chart'; -import routes from '@constants/routes.json'; import { useFetchDelegationStatus } from '@hooks/use-fetch-delegation-status'; import { useMempool } from '@hooks/use-mempool'; import { Box, Button, color, Flex, Text } from '@stacks/ui'; import { selectPoxInfo } from '@store/stacking'; +import { openExternalLink } from '@utils/external-links'; import { isDelegateStxTx } from '@utils/tx-utils'; -import React, { FC, useEffect } from 'react'; +import { FC, useEffect } from 'react'; import { useSelector } from 'react-redux'; import { useHistory } from 'react-router-dom'; @@ -51,7 +51,7 @@ export const StackingPromoCard: FC = () => { alignSelf="flex-start" mode="tertiary" isDisabled={hasPendingDelegateStxCall} - onClick={() => history.push(routes.CHOOSE_STACKING_METHOD)} + onClick={() => openExternalLink('https://lockstacks.com')} > {'Get stacking on Lockstacks →'}