File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ 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"
7
6
import Tooltip , { type TooltipProps } from "@/components/Tooltip"
8
7
import Translation from "@/components/Translation"
9
8
@@ -15,10 +14,6 @@ type GlossaryTooltipProps = Omit<TooltipProps, "content"> & {
15
14
termKey : string
16
15
}
17
16
18
- const components = {
19
- a : InlineLink ,
20
- }
21
-
22
17
const GlossaryTooltip = ( {
23
18
children,
24
19
termKey,
@@ -36,7 +31,6 @@ const GlossaryTooltip = ({
36
31
< Translation
37
32
id = { termKey + "-term" }
38
33
options = { { ns : "glossary-tooltip" } }
39
- transform = { components }
40
34
/>
41
35
</ Heading >
42
36
{ /**
@@ -49,7 +43,6 @@ const GlossaryTooltip = ({
49
43
< Translation
50
44
id = { termKey + "-definition" }
51
45
options = { { ns : "glossary-tooltip" } }
52
- transform = { components }
53
46
/>
54
47
</ Text >
55
48
</ VStack >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { useTranslation } from "next-i18next"
5
5
6
6
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
7
7
8
- import TooltipLink from "./TooltipLink "
8
+ import InlineLink from "./Link "
9
9
10
10
type TranslationProps = {
11
11
id : string
@@ -16,7 +16,7 @@ type TranslationProps = {
16
16
// Custom components mapping to be used by `htmr` when parsing the translation
17
17
// text
18
18
const defaultTransform = {
19
- a : TooltipLink ,
19
+ a : InlineLink ,
20
20
}
21
21
22
22
// Renders the translation string for the given translation key `id`. It
You can’t perform that action at this time.
0 commit comments