File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
import React , { ReactNode , useState } from "react"
2
2
import styled from "@emotion/styled"
3
+ import { Box } from "@chakra-ui/react"
3
4
import * as utils from "../utils/isMobile"
4
5
5
- const Container = styled . div `
6
- position: relative;
7
- display: inline-flex;
8
- user-select: none;
9
- cursor: pointer;
10
- `
11
-
12
6
const Content = styled . div `
13
7
text-align: center;
14
8
white-space: normal;
@@ -68,7 +62,11 @@ const Tooltip: React.FC<IProps> = ({ content, children }) => {
68
62
{ isVisible && isMobile && (
69
63
< ModalReturn onClick = { ( ) => setIsVisible ( false ) } />
70
64
) }
71
- < Container
65
+ < Box
66
+ position = "relative"
67
+ display = "inline-flex"
68
+ userSelect = "none"
69
+ cursor = "pointer"
72
70
title = "More info"
73
71
onMouseEnter = { ! isMobile ? ( ) => setIsVisible ( true ) : undefined }
74
72
onMouseLeave = { ! isMobile ? ( ) => setIsVisible ( false ) : undefined }
@@ -81,7 +79,7 @@ const Tooltip: React.FC<IProps> = ({ content, children }) => {
81
79
{ content }
82
80
</ Content >
83
81
) }
84
- </ Container >
82
+ </ Box >
85
83
</ >
86
84
)
87
85
}
You can’t perform that action at this time.
0 commit comments