File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Roadmap/RoadmapActionCard Expand file tree Collapse file tree 3 files changed +11
-6
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 >
Original file line number Diff line number Diff line change 1
1
import { Box , SimpleGrid } from "@chakra-ui/react"
2
2
import type { Meta , StoryObj } from "@storybook/react"
3
3
4
- import { ContentContainer } from "@/components/MdComponents"
5
-
6
4
import RoadmapActionCardComponent from "."
7
5
8
6
const meta = {
@@ -11,11 +9,11 @@ const meta = {
11
9
decorators : [
12
10
( Story ) => (
13
11
< Box maxW = "1008px" >
14
- < ContentContainer >
12
+ < div >
15
13
< SimpleGrid columns = { { base : 1 , md : 2 } } spacing = { 8 } >
16
14
< Story />
17
15
</ SimpleGrid >
18
- </ ContentContainer >
16
+ </ div >
19
17
</ Box >
20
18
) ,
21
19
] ,
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 InlineLink from "./Link "
8
+ import TooltipLink from "./TooltipLink "
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 : InlineLink ,
19
+ a : TooltipLink ,
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