From c68fbea6066dff8c2fa993b504214c3e9f1cafaf Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Wed, 10 May 2023 16:19:22 +0200 Subject: [PATCH] fix: migrate code to html-to-react v2 Signed-off-by: Renovate Bot Signed-off-by: Tilman Vatteroth --- frontend/src/components/common/html-to-react/html-to-react.tsx | 2 +- .../markdown-to-react/utils/node-to-react-transformer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/common/html-to-react/html-to-react.tsx b/frontend/src/components/common/html-to-react/html-to-react.tsx index 0e2dfac13..bdc1be0f5 100644 --- a/frontend/src/components/common/html-to-react/html-to-react.tsx +++ b/frontend/src/components/common/html-to-react/html-to-react.tsx @@ -4,7 +4,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import type { ParserOptions } from '@hedgedoc/html-to-react' -import convertHtmlToReact from '@hedgedoc/html-to-react' +import { convertHtmlToReact } from '@hedgedoc/html-to-react' import type DOMPurify from 'dompurify' import { sanitize } from 'dompurify' import React, { Fragment, useMemo } from 'react' diff --git a/frontend/src/components/markdown-renderer/markdown-to-react/utils/node-to-react-transformer.tsx b/frontend/src/components/markdown-renderer/markdown-to-react/utils/node-to-react-transformer.tsx index 6c155ab57..d81287f08 100644 --- a/frontend/src/components/markdown-renderer/markdown-to-react/utils/node-to-react-transformer.tsx +++ b/frontend/src/components/markdown-renderer/markdown-to-react/utils/node-to-react-transformer.tsx @@ -11,7 +11,7 @@ import type { ValidReactDomElement } from '../../replace-components/component-replacer' import { DO_NOT_REPLACE } from '../../replace-components/component-replacer' -import { convertNodeToReactElement } from '@hedgedoc/html-to-react/dist/convertNodeToReactElement' +import { convertNodeToReactElement } from '@hedgedoc/html-to-react' import { Optional } from '@mrdrogdrog/optional' import type { Element, Node } from 'domhandler' import { isTag } from 'domhandler'