mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Appease type checker
This commit is contained in:
parent
e9f5fa7858
commit
c2fb745188
@ -15,7 +15,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { highlightElement } from 'highlight.js';
|
||||
import highlight from 'highlight.js';
|
||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||
|
||||
interface IProps {
|
||||
@ -33,7 +33,7 @@ export default class SyntaxHighlight extends React.Component<IProps> {
|
||||
|
||||
// componentDidUpdate used here for reusability
|
||||
public componentDidUpdate(): void {
|
||||
if (this.el) highlightElement(this.el);
|
||||
if (this.el) highlight.highlightElement(this.el);
|
||||
}
|
||||
|
||||
// call componentDidUpdate because _ref is fired on initial render
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user