Skip to content

Commit eb02aa2

Browse files
committed
fix Translation component types
1 parent b6a3aa4 commit eb02aa2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/TooltipLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import GlossaryTooltip from "./Glossary/GlossaryTooltip"
44
import InlineLink from "./Link"
55

66
interface Props {
7-
href: string
8-
children: ReactNode
7+
href?: string
8+
children?: ReactNode
99
}
1010

1111
/**

src/components/Translation.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const Translation = ({ id, options, transform = {} }: TranslationProps) => {
3030

3131
// Use `htmr` to parse html content in the translation text
3232
return htmr(translatedText, {
33-
// @ts-ignore
3433
transform: { ...defaultTransform, ...transform },
3534
})
3635
}

0 commit comments

Comments
 (0)