Skip to content

Commit 6bb765f

Browse files
committed
fix lint
1 parent 0072116 commit 6bb765f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/components/Copybook.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {useEffect, useRef} from 'react';
1+
import React, {useRef} from 'react';
22
import {Button, Dropdown, Modal} from 'semantic-ui-react';
33
import Loading from "./Loading";
44
import useCodeHighlighting from './hooks/useCodeHighlighting';

‎src/components/hooks/useCodeHighlighting.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {useEffect, useRef} from 'react';
22

33
export default function useCodeHighlighting(watchedProps, keyword) {
4-
const container = React.createRef(null);
4+
const container = useRef(null);
55
const mark = useRef(null);
66
useEffect(() => {
77
renderPrettyPrint();

0 commit comments

Comments
 (0)