Skip to content

Commit 251739f

Browse files
committed
[feat] change tooltip to portal tooltip
1 parent 7f55189 commit 251739f

File tree

1 file changed

+4
-4
lines changed
  • apps/extension/src/pages/main/components/account-switch-float-modal

1 file changed

+4
-4
lines changed

apps/extension/src/pages/main/components/account-switch-float-modal/account-item.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { ColorPalette } from "../../../../styles";
44
import { Body3, Caption2, Subtitle4 } from "../../../../components/typography";
55
import { KeyInfo } from "@keplr-wallet/background";
66
import { observer } from "mobx-react-lite";
7-
import { Tooltip } from "../../../../components/tooltip";
87
import { EllipsisIcon } from "../../../../components/icon";
98
import { XAxis, YAxis } from "../../../../components/axis";
109
import { Image } from "../../../../components/image";
@@ -24,6 +23,7 @@ import { useGetKeyInfoParagraph } from "../../../../hooks/key-info";
2423
import { useGetIcnsName } from "../../../../hooks/use-get-icns-name";
2524
import { ContextMenuStyles } from "../../../../components/context-menu";
2625
import { AccountNameIcon } from "../account-icon";
26+
import { PortalTooltip } from "../../../../components/tooltip/portal";
2727

2828
const Styles = {
2929
AccountItem: styled.div<{ isSelected: boolean }>`
@@ -218,14 +218,14 @@ export const AccountItemSwitchModal = observer(
218218
{icnsPrimaryName && (
219219
<React.Fragment>
220220
<Gutter size="0.375rem" />
221-
<Tooltip
221+
<PortalTooltip
222222
hideArrow={true}
223223
content={
224224
<Caption2 color={ColorPalette["white"]}>
225225
{icnsPrimaryName}
226226
</Caption2>
227227
}
228-
allowedPlacements={["top", "bottom", "right"]}
228+
allowedPlacements={["top"]}
229229
>
230230
<Image
231231
alt="icns-icon"
@@ -238,7 +238,7 @@ export const AccountItemSwitchModal = observer(
238238
opacity: isSelected ? COMMON_HOVER_OPACITY : 1,
239239
}}
240240
/>
241-
</Tooltip>
241+
</PortalTooltip>
242242
</React.Fragment>
243243
)}
244244
</XAxis>

0 commit comments

Comments
 (0)