Skip to content

Commit

Permalink
fix: AddFromChainList tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed May 8, 2024
1 parent ff7cfc8 commit 0ecd931
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/background/service/customTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class CustomTestnetService {
return {
error: {
key: 'id',
message: 'Chain already supported by Rabby Wallet',
message: 'Chain already integrated by Rabby Wallet',
},
};
}
Expand Down
34 changes: 17 additions & 17 deletions src/ui/views/CustomTestnet/components/AddFromChainList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,24 +222,24 @@ const CustomTestnetList = ({
const chain = findChain({ id: item.id });

return chain ? (
<TooltipWithMagnetArrow
className="rectangle w-[max-content]"
key={item.id + 'tooltip'}
trigger={['click']}
align={{
offset: [0, 30],
}}
placement="top"
title={
chain?.isTestnet
? t('page.customTestnet.AddFromChainList.tips.added')
: t('page.customTestnet.AddFromChainList.tips.supported')
}
>
<div className="chain-list-item relative">
<div className="chain-list-item relative">
<TooltipWithMagnetArrow
className="rectangle w-[max-content]"
key={item.id + 'tooltip'}
trigger={['click']}
align={{
offset: [0, 30],
}}
placement="top"
title={
chain?.isTestnet
? t('page.customTestnet.AddFromChainList.tips.added')
: t('page.customTestnet.AddFromChainList.tips.supported')
}
>
<CustomTestnetItem item={item} disabled />
</div>
</TooltipWithMagnetArrow>
</TooltipWithMagnetArrow>
</div>
) : (
<CustomTestnetItem
item={item}
Expand Down

0 comments on commit 0ecd931

Please sign in to comment.