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: change runes receive address to tr #5240

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions src/app/pages/receive/components/receive-tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ export function ReceiveTokens({
/>
{(network.chain.bitcoin.bitcoinNetwork === 'testnet' || runesEnabled) && (
<ReceiveItem
address={btcAddressNativeSegwit}
address={btcAddressTaproot}
icon={<RunesAvatarIcon />}
// onClickQrCode={onClickQrStamp}
onCopyAddress={async () => {
await copyToClipboard(btcAddressNativeSegwit);
await copyToClipboard(btcAddressTaproot);
toast.success('Copied to clipboard!');
}}
title="Runes"
Expand Down
16 changes: 12 additions & 4 deletions src/app/ui/components/avatar/runes-avatar-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
import { token } from 'leather-styles/tokens';

import { Avatar, type AvatarProps } from './avatar';

export function RunesAvatarIcon(props: AvatarProps) {
return (
<Avatar.Root size="xl" variant="square" {...props}>
<Avatar.Svg rounded="0">
<rect width="32" height="32" rx="16" fill="white" />
<rect width="32" height="32" fill="#12100F" />
<rect x="4" y="4" width="24" height="24" fill="white" />
<rect x="10" y="10" width="12" height="12" fill="#12100F" />
<rect width="32" height="32" rx="16" fill={token('colors.ink.background-primary')} />
<rect width="32" height="32" fill={token('colors.ink.action-primary-default')} />
<rect x="4" y="4" width="24" height="24" fill={token('colors.ink.background-primary')} />
<rect
x="10"
y="10"
width="12"
height="12"
fill={token('colors.ink.action-primary-default')}
/>
</Avatar.Svg>
</Avatar.Root>
);
Expand Down
Loading