Skip to content

Commit

Permalink
chore: update JSX type use before upgrade of React (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikkCZ authored Feb 9, 2025
1 parent a6792b4 commit a91ab5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/privacy-policy/MarkdownContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function renderMarkdown(markdown: string) {
return DOMPurify.sanitize(html, { ADD_ATTR: ['target'] });
}

function wrapLinks(domNode: DOMNode): JSX.Element | void {
function wrapLinks(domNode: DOMNode): React.JSX.Element | void {
if (
domNode instanceof Element &&
domNode.name === 'a' &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ interface Props

function wrapLinks(pontoonBaseUrl: string): HTMLReactParserOptions['replace'] {
// eslint-disable-next-line react/display-name
return (domNode: DOMNode): JSX.Element | void => {
return (domNode: DOMNode): React.JSX.Element | void => {
if (
domNode instanceof Element &&
domNode.name === 'a' &&
Expand Down

0 comments on commit a91ab5c

Please sign in to comment.