File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/components/Glossary/GlossaryTooltip Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { useRouter } from "next/router"
3
3
import { Box , Text , VStack } from "@chakra-ui/react"
4
4
5
5
import Heading from "@/components/Heading"
6
+ import InlineLink from "@/components/Link"
6
7
import Tooltip , { type TooltipProps } from "@/components/Tooltip"
7
8
import Translation from "@/components/Translation"
8
9
@@ -31,6 +32,9 @@ const GlossaryTooltip = ({
31
32
< Translation
32
33
id = { termKey + "-term" }
33
34
options = { { ns : "glossary-tooltip" } }
35
+ // Override the default `a` tag transformation to avoid circular
36
+ // dependency issues
37
+ transform = { { a : InlineLink } }
34
38
/>
35
39
</ Heading >
36
40
{ /**
@@ -43,6 +47,9 @@ const GlossaryTooltip = ({
43
47
< Translation
44
48
id = { termKey + "-definition" }
45
49
options = { { ns : "glossary-tooltip" } }
50
+ // Override the default `a` tag transformation to avoid circular
51
+ // dependency issues
52
+ transform = { { a : InlineLink } }
46
53
/>
47
54
</ Text >
48
55
</ VStack >
You can’t perform that action at this time.
0 commit comments