Skip to content

Commit 7f83ddf

Browse files
committed
convert container
1 parent bfdc48a commit 7f83ddf

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/components/Tooltip.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
import React, { ReactNode, useState } from "react"
22
import styled from "@emotion/styled"
3+
import { Box } from "@chakra-ui/react"
34
import * as utils from "../utils/isMobile"
45

5-
const Container = styled.div`
6-
position: relative;
7-
display: inline-flex;
8-
user-select: none;
9-
cursor: pointer;
10-
`
11-
126
const Content = styled.div`
137
text-align: center;
148
white-space: normal;
@@ -68,7 +62,11 @@ const Tooltip: React.FC<IProps> = ({ content, children }) => {
6862
{isVisible && isMobile && (
6963
<ModalReturn onClick={() => setIsVisible(false)} />
7064
)}
71-
<Container
65+
<Box
66+
position="relative"
67+
display="inline-flex"
68+
userSelect="none"
69+
cursor="pointer"
7270
title="More info"
7371
onMouseEnter={!isMobile ? () => setIsVisible(true) : undefined}
7472
onMouseLeave={!isMobile ? () => setIsVisible(false) : undefined}
@@ -81,7 +79,7 @@ const Tooltip: React.FC<IProps> = ({ content, children }) => {
8179
{content}
8280
</Content>
8381
)}
84-
</Container>
82+
</Box>
8583
</>
8684
)
8785
}

0 commit comments

Comments
 (0)