File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
components/Glossary/GlossaryDefinition Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import InlineLink from "@/components/Link"
5
5
import OldHeading from "@/components/OldHeading"
6
6
import Translation from "@/components/Translation"
7
7
8
+ import { DEFAULT_GLOSSARY_NS } from "@/lib/constants"
9
+
8
10
interface GlossaryDefinitionProps {
9
11
term : string
10
12
size ?: "md" | "sm"
11
13
options ?: ComponentProps < typeof Translation > [ "options" ]
12
14
}
13
15
14
- const DEFAULT_NS = "glossary"
15
-
16
16
// Override the default `a` mapping to prevent displaying the glossary tooltip
17
17
// in the glossary definition
18
18
const components = {
@@ -22,7 +22,7 @@ const components = {
22
22
const GlossaryDefinition = ( {
23
23
term,
24
24
size = "md" ,
25
- options = { ns : DEFAULT_NS } ,
25
+ options = { ns : DEFAULT_GLOSSARY_NS } ,
26
26
} : GlossaryDefinitionProps ) => {
27
27
const headingStyles =
28
28
size === "sm"
Original file line number Diff line number Diff line change @@ -87,3 +87,6 @@ export const SECTION_LABELS: NavSectionKey[] = [
87
87
"participate" ,
88
88
"research" ,
89
89
]
90
+
91
+ // Glossary Definition Component
92
+ export const DEFAULT_GLOSSARY_NS = "glossary"
You can’t perform that action at this time.
0 commit comments