Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: inscriptions settings btn and available balance #6050

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"@leather.io/constants": "0.13.5",
"@leather.io/crypto": "1.6.14",
"@leather.io/models": "0.24.0",
"@leather.io/query": "2.26.9",
"@leather.io/query": "2.26.10",
"@leather.io/stacks": "1.4.0",
"@leather.io/tokens": "0.12.1",
"@leather.io/ui": "1.44.4",
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ export function Inscription({ inscription }: InscriptionProps) {
<Box opacity={hasInscriptionBeenDiscarded(inscription) ? 0.5 : 1}>{content}</Box>
{isHovered && (
<Box
border="1px solid"
borderColor="ink.text-primary"
borderRadius="2px"
bg="ink.background-primary"
position="absolute"
right="space.03"
Expand All @@ -136,9 +139,6 @@ export function Inscription({ inscription }: InscriptionProps) {
_focus={{ outline: 'focus' }}
_hover={{ bg: 'ink.component-background-hover' }}
bg="ink.background-primary"
border="1px solid"
borderColor="ink.text-primary"
borderRadius="2px"
transform="rotate(90deg)"
color="ink.action-primary-default"
icon={<EllipsisVIcon />}
Expand Down
5 changes: 4 additions & 1 deletion src/app/pages/home/components/account-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
} from '@app/query/common/remote-config/remote-config.query';
import { useCurrentAccountNativeSegwitIndexZeroSignerNullable } from '@app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks';
import { useCurrentStacksAccount } from '@app/store/accounts/blockchain/stacks/stacks-account.hooks';
import { useCurrentNetworkState } from '@app/store/networks/networks.hooks';
import { useCurrentNetwork } from '@app/store/networks/networks.selectors';
import { BasicTooltip } from '@app/ui/components/tooltip/basic-tooltip';

Expand All @@ -29,8 +30,10 @@ export function AccountActions() {
const currentBtcSigner = useCurrentAccountNativeSegwitIndexZeroSignerNullable();
const btcAccount = currentBtcSigner?.address;
const currentNetwork = useCurrentNetwork();
const { isTestnet } = useCurrentNetworkState();

const swapsEnabled = useConfigSwapsEnabled();
const swapsBtnDisabled = !swapsEnabled || !stacksAccount;
const swapsBtnDisabled = !swapsEnabled || !stacksAccount || isTestnet;

const receivePath = isBitcoinEnabled
? RouteUrls.Receive
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/components/account/account.card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { PrivateTextLayout } from '@app/components/privacy/private-text.layout';
import { BasicTooltip } from '../tooltip/basic-tooltip';

const availableBalanceTooltipLabel =
'Total balance minus outbound transfers, protected collectibles and uneconomical UTXOs.';
'Total balance minus locked amounts, outbound transfers, protected collectibles and uneconomical UTXOs';
fbwoolf marked this conversation as resolved.
Show resolved Hide resolved

interface AccountCardProps {
name: string;
Expand Down
Loading