Update usage here too
parent
2b7ea16c2d
commit
e9f5fa7858
|
@ -15,7 +15,7 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { highlightBlock } from 'highlight.js';
|
import { highlightElement } from 'highlight.js';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
|
@ -33,7 +33,7 @@ export default class SyntaxHighlight extends React.Component<IProps> {
|
||||||
|
|
||||||
// componentDidUpdate used here for reusability
|
// componentDidUpdate used here for reusability
|
||||||
public componentDidUpdate(): void {
|
public componentDidUpdate(): void {
|
||||||
if (this.el) highlightBlock(this.el);
|
if (this.el) highlightElement(this.el);
|
||||||
}
|
}
|
||||||
|
|
||||||
// call componentDidUpdate because _ref is fired on initial render
|
// call componentDidUpdate because _ref is fired on initial render
|
||||||
|
|
Loading…
Reference in New Issue