Skip to content

Commit

Permalink
Merge pull request #1269 from leather-wallet/chore/update-stacking-copy
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie authored May 14, 2024
2 parents 18b451b + ae6cf46 commit e9547a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/components/home/stacking-promo-card.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
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 { useSelector } from 'react-redux';
import { useHistory } from 'react-router-dom';

export const StackingPromoCard: FC = () => {
const history = useHistory();
const { outboundMempoolTxs } = useMempool();
const poxInfo = useSelector(selectPoxInfo);
const hasPendingDelegateStxCall = outboundMempoolTxs.some(tx =>
Expand Down Expand Up @@ -51,7 +49,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 →'}
</Button>
Expand Down

0 comments on commit e9547a7

Please sign in to comment.