Skip to content
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
27 changes: 26 additions & 1 deletion packages/mask/popups/components/WalletItem/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { Trans } from '@lingui/react/macro'
import { FormattedAddress } from '@masknet/shared'
import { ImportSource, NetworkPluginID, PersistentStorages, PrivyEnvGuard, type Wallet } from '@masknet/shared-base'
import {
ImportSource,
NetworkPluginID,
PersistentStorages,
PopupRoutes,
PrivyEnvGuard,
type Wallet,
} from '@masknet/shared-base'
import { makeStyles } from '@masknet/theme'
import { useReverseAddress } from '@masknet/web3-hooks-base'
import { isSameAddress } from '@masknet/web3-shared-base'
Expand All @@ -19,6 +26,9 @@ import { memo, useCallback, useMemo } from 'react'
import { useSubscription } from 'use-subscription'
import { WalletBalance } from '../index.js'
import { WalletAvatar } from '../WalletAvatar/index.js'
import { Icons } from '@masknet/icons'
import { useNavigate } from 'react-router-dom'
import urlcat from 'urlcat'

const useStyles = makeStyles()((theme) => ({
item: {
Expand Down Expand Up @@ -96,6 +106,7 @@ interface WalletItemProps extends Omit<ListItemProps, 'onSelect'> {
export const WalletItem = memo<WalletItemProps>(
PrivyEnvGuard(function WalletItem({ wallet, onSelect, isSelected, className, hiddenTag, ...rest }) {
const { classes, cx } = useStyles()
const navigate = useNavigate()
const { data: domain } = useReverseAddress(NetworkPluginID.PLUGIN_EVM, wallet.address)

const handleSelect = useCallback(() => {
Expand Down Expand Up @@ -138,6 +149,20 @@ export const WalletItem = memo<WalletItemProps>(
/>
</span>
</Tooltip>
{isFireflyWallet ?
<Icons.QrcodeIcon
size={16}
onClick={(e) => {
e.stopPropagation()
navigate(
Copy link
Member

@Jack-Works Jack-Works Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should use <Link> component.

urlcat(PopupRoutes.SyncTwitterCookies, {
address: wallet.address,
name: walletName,
}),
)
}}
/>
: null}
</Typography>
</Box>
<WalletBalance className={classes.balance} skeletonWidth={60} account={wallet.address} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ const useStyles = makeStyles()((theme) => {
background: theme.palette.maskColor.secondaryBottom,
boxShadow: '0px 0px 20px 0px rgba(0, 0, 0, 0.05)',
backdropFilter: 'blur(8px)',
width: '100%',
bottom: 0,
left: 0,
right: 0,
zIndex: 100,
},
button: {
Expand Down