Skip to content

Commit ae6cf46

Browse files
committed
fix: direct to lockstacks
1 parent 18b451b commit ae6cf46

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/components/home/stacking-promo-card.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import { AbstractBtcChartSvg } from '@components/svg/abstract-btc-chart';
2-
import routes from '@constants/routes.json';
32
import { useFetchDelegationStatus } from '@hooks/use-fetch-delegation-status';
43
import { useMempool } from '@hooks/use-mempool';
54
import { Box, Button, color, Flex, Text } from '@stacks/ui';
65
import { selectPoxInfo } from '@store/stacking';
6+
import { openExternalLink } from '@utils/external-links';
77
import { isDelegateStxTx } from '@utils/tx-utils';
88
import React, { FC, useEffect } from 'react';
99
import { useSelector } from 'react-redux';
10-
import { useHistory } from 'react-router-dom';
1110

1211
export const StackingPromoCard: FC = () => {
13-
const history = useHistory();
1412
const { outboundMempoolTxs } = useMempool();
1513
const poxInfo = useSelector(selectPoxInfo);
1614
const hasPendingDelegateStxCall = outboundMempoolTxs.some(tx =>
@@ -51,7 +49,7 @@ export const StackingPromoCard: FC = () => {
5149
alignSelf="flex-start"
5250
mode="tertiary"
5351
isDisabled={hasPendingDelegateStxCall}
54-
onClick={() => history.push(routes.CHOOSE_STACKING_METHOD)}
52+
onClick={() => openExternalLink('https://lockstacks.com')}
5553
>
5654
{'Get stacking on Lockstacks →'}
5755
</Button>

0 commit comments

Comments
 (0)