Skip to content

Commit 0b7e307

Browse files
authored
Merge pull request #12408 from ethereum/glossary-tooltips-mobile
Glossary Tooltip for mobile
2 parents afb697f + c55c4fd commit 0b7e307

File tree

1 file changed

+2
-6
lines changed
  • src/components/Glossary/GlossaryTooltip

1 file changed

+2
-6
lines changed

src/components/Glossary/GlossaryTooltip/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ReactNode } from "react"
2-
import { Box, Text, useBreakpointValue } from "@chakra-ui/react"
2+
import { Box, Text } from "@chakra-ui/react"
33

44
import GlossaryDefinition from "@/components/Glossary/GlossaryDefinition"
55
import Tooltip from "@/components/Tooltip"
@@ -10,9 +10,7 @@ type GlossaryTooltipProps = {
1010
}
1111

1212
const GlossaryTooltip = ({ children, termKey }: GlossaryTooltipProps) => {
13-
const isLargeScreen = useBreakpointValue({ base: false, lg: true })
14-
15-
return isLargeScreen ? (
13+
return (
1614
<Box display="inline-block">
1715
<Tooltip
1816
content={
@@ -37,8 +35,6 @@ const GlossaryTooltip = ({ children, termKey }: GlossaryTooltipProps) => {
3735
</Text>
3836
</Tooltip>
3937
</Box>
40-
) : (
41-
<Text as="span">{children}</Text>
4238
)
4339
}
4440

0 commit comments

Comments
 (0)