Skip to content

Commit

Permalink
fix: inscription settings btn styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Dec 27, 2024
1 parent 19ec3fe commit 0c0877b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
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';

interface AccountCardProps {
name: string;
Expand Down

0 comments on commit 0c0877b

Please sign in to comment.