Skip to content
Merged
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
16 changes: 8 additions & 8 deletions packages/mask/src/components/shared/ApplicationBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function ApplicationBoard({ secondEntries, secondEntryChainTabs }: MaskAp
const account = useAccount()
const selectedWallet = useWallet()
const currentPluginId = usePluginIDContext()
const isFlow = currentPluginId === NetworkPluginID.PLUGIN_FLOW
const isNotEvm = currentPluginId !== NetworkPluginID.PLUGIN_EVM

// #region Encrypted message
const openEncryptedMessage = useCallback(
Expand Down Expand Up @@ -212,7 +212,7 @@ export function ApplicationBoard({ secondEntries, secondEntryChainTabs }: MaskAp
new URL('./assets/lucky_drop.png', import.meta.url).toString(),
() => openEncryptedMessage(RedPacketPluginID),
undefined,
isFlow,
isNotEvm,
),
createEntry(
'File Service',
Expand All @@ -227,37 +227,37 @@ export function ApplicationBoard({ secondEntries, secondEntryChainTabs }: MaskAp
new URL('./assets/token.png', import.meta.url).toString(),
() => openEncryptedMessage(ITO_PluginID),
undefined,
isFlow,
isNotEvm,
),
createEntry(
'Claim',
new URL('./assets/gift.png', import.meta.url).toString(),
onClaimAllDialogOpen,
undefined,
isFlow,
isNotEvm,
),
createEntry(
'Mask Bridge',
new URL('./assets/bridge.png', import.meta.url).toString(),
() => window.open('https://bridge.mask.io/#/', '_blank', 'noopener noreferrer'),
undefined,
isFlow,
isNotEvm,
false,
),
createEntry(
'MaskBox',
new URL('./assets/mask_box.png', import.meta.url).toString(),
() => window.open('https://box.mask.io/#/', '_blank', 'noopener noreferrer'),
undefined,
isFlow,
isNotEvm,
false,
),
createEntry(
'Swap',
new URL('./assets/swap.png', import.meta.url).toString(),
onSwapDialogOpen,
undefined,
isFlow,
isNotEvm,
),
createEntry(
'Fiat On-Ramp',
Expand Down Expand Up @@ -301,7 +301,7 @@ export function ApplicationBoard({ secondEntries, secondEntryChainTabs }: MaskAp
undefined,
),
undefined,
isFlow,
isNotEvm,
),
createEntry(
'Investment',
Expand Down