Skip to content

Commit 1e609b4

Browse files
Migrate react-highlighter to react-highlighter-ts (#3080)
Co-authored-by: Stephen James <[email protected]>
1 parent e90cdc9 commit 1e609b4

File tree

3 files changed

+16
-33
lines changed

3 files changed

+16
-33
lines changed

components/utilities/highlighter/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import React from 'react';
66
import PropTypes from 'prop-types';
77

88
// ### ReactHighlighter
9-
import ReactHighlighter from 'react-highlighter';
9+
import { Highlight as ReactHighlighter } from 'react-highlighter-ts';
1010

1111
// ## Constants
1212
import { HIGHLIGHTER } from '../../../utilities/constants';

package-lock.json

Lines changed: 14 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"popper.js": "^1.10.8",
104104
"prop-types": ">=15.7.2",
105105
"react-contenteditable": "^3.3.5",
106-
"react-highlighter": "^0.4.3",
106+
"react-highlighter-ts": "^2.2.0",
107107
"react-modal": "3.14.3",
108108
"react-onclickoutside": "^6.10.0",
109109
"react-required-if": "^1.0.3",

0 commit comments

Comments
 (0)