File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/components/Glossary/GlossaryTooltip Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
import React , { ReactNode } from "react"
2
- import { Box , Text , useBreakpointValue } from "@chakra-ui/react"
2
+ import { Box , Text } from "@chakra-ui/react"
3
3
4
4
import GlossaryDefinition from "@/components/Glossary/GlossaryDefinition"
5
5
import Tooltip from "@/components/Tooltip"
@@ -10,9 +10,7 @@ type GlossaryTooltipProps = {
10
10
}
11
11
12
12
const GlossaryTooltip = ( { children, termKey } : GlossaryTooltipProps ) => {
13
- const isLargeScreen = useBreakpointValue ( { base : false , lg : true } )
14
-
15
- return isLargeScreen ? (
13
+ return (
16
14
< Box display = "inline-block" >
17
15
< Tooltip
18
16
content = {
@@ -37,8 +35,6 @@ const GlossaryTooltip = ({ children, termKey }: GlossaryTooltipProps) => {
37
35
</ Text >
38
36
</ Tooltip >
39
37
</ Box >
40
- ) : (
41
- < Text as = "span" > { children } </ Text >
42
38
)
43
39
}
44
40
You can’t perform that action at this time.
0 commit comments