Skip to content

Commit

Permalink
chore: enable ledger swaps to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fara Woolf authored and fbwoolf committed Dec 8, 2023
1 parent d275d8c commit 6539075
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/pages/home/components/account-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Flex, FlexProps } from 'leather-styles/jsx';

import { RouteUrls } from '@shared/route-urls';

import { useWalletType } from '@app/common/use-wallet-type';
import { useConfigBitcoinEnabled } from '@app/query/common/remote-config/remote-config.query';
import { useCurrentStacksAccount } from '@app/store/accounts/blockchain/stacks/stacks-account.hooks';
import { ArrowDownIcon } from '@app/ui/components/icons/arrow-down-icon';
Expand All @@ -19,7 +18,6 @@ export function AccountActions(props: FlexProps) {
const navigate = useNavigate();
const location = useLocation();
const isBitcoinEnabled = useConfigBitcoinEnabled();
const { whenWallet } = useWalletType();
const stacksAccount = useCurrentStacksAccount();

const receivePath = isBitcoinEnabled
Expand All @@ -45,12 +43,7 @@ export function AccountActions(props: FlexProps) {
/>
)}

{whenWallet({
software: (
<ActionButton icon={<SwapIcon />} label="Swap" onClick={() => navigate(RouteUrls.Swap)} />
),
ledger: null,
})}
<ActionButton icon={<SwapIcon />} label="Swap" onClick={() => navigate(RouteUrls.Swap)} />
</Flex>
);
}

0 comments on commit 6539075

Please sign in to comment.