Skip to content
This repository was archived by the owner on Aug 26, 2023. It is now read-only.

Commit 2314a52

Browse files
committed
Fix code for new domhandler types
Signed-off-by: Tilman Vatteroth <[email protected]>
1 parent 6869102 commit 2314a52

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/elementTypes/ProcessStyleNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import React, { ReactElement } from 'react'
88
import { generatePropsFromAttributes } from '../utils/generatePropsFromAttributes'
9-
import { isText } from 'domhandler/lib/node'
9+
import { isText } from 'domhandler'
1010
import { isTag, Node } from 'domhandler'
1111

1212
/**

src/elementTypes/ProcessTextNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { Node } from 'domhandler'
8-
import { isText } from 'domhandler/lib/node'
8+
import { isText } from 'domhandler'
99

1010
/**
1111
* Converts a text node to a React text element

test/integration/integration.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { convertHtmlToReact, ParserOptions } from '../../src/convertHtmlToReact'
99
import { convertNodeToReactElement } from '../../src/convertNodeToReactElement'
1010
import { Document, isTag } from 'domhandler'
1111
import { NodeToReactElementTransformer } from '../../src/NodeToReactElementTransformer'
12-
import { isText } from 'domhandler/lib/node'
12+
import { isText } from 'domhandler'
1313

1414
const expectSameHtml = function (html: string, options: ParserOptions = {}) {
1515
const actual = renderToStaticMarkup(

0 commit comments

Comments
 (0)