File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { ReactNode , useState } from "react"
2
- import { Box } from "@chakra-ui/react"
2
+ import { Box , useColorModeValue } from "@chakra-ui/react"
3
3
import * as utils from "../utils/isMobile"
4
4
5
5
export interface IProps {
@@ -11,6 +11,7 @@ export interface IProps {
11
11
const Tooltip : React . FC < IProps > = ( { content, children } ) => {
12
12
const [ isVisible , setIsVisible ] = useState < boolean > ( false )
13
13
const isMobile = utils . isMobile ( )
14
+ const shadow = useColorModeValue ( "tableBox.light" , "tableBox.dark" )
14
15
15
16
return (
16
17
< >
@@ -45,7 +46,7 @@ const Tooltip: React.FC<IProps> = ({ content, children }) => {
45
46
w = { { base : "140px" , md : "200px" } }
46
47
color = "text"
47
48
bg = "background"
48
- boxShadow = "tableBoxShadow"
49
+ boxShadow = { shadow }
49
50
position = "absolute"
50
51
zIndex = "docked"
51
52
py = { 4 }
You can’t perform that action at this time.
0 commit comments