Fixed linter warnings
This commit is contained in:
parent
b02ad98dd5
commit
5018f2e8cf
|
@ -1,4 +1,4 @@
|
|||
import React, { useState, useEffect, useRef } from 'react'
|
||||
import React, { useState, useRef } from 'react'
|
||||
import { useCombobox } from 'downshift'
|
||||
|
||||
const Autocomplete = props => {
|
||||
|
@ -6,9 +6,6 @@ const Autocomplete = props => {
|
|||
const element = useRef();
|
||||
|
||||
const [ inputItems, setInputItems ] = useState(props.vocabulary);
|
||||
|
||||
// useEffect(() =>
|
||||
// element.current?.querySelector('input')?.focus(), []);
|
||||
|
||||
const onInputValueChange = ({ inputValue }) => {
|
||||
if (inputValue.length > 0) {
|
||||
|
|
|
@ -67,7 +67,7 @@ const CommentWidget = props => {
|
|||
// The current user
|
||||
const me = Environment.user;
|
||||
|
||||
return !(me === creator);
|
||||
return me !== creator;
|
||||
}
|
||||
|
||||
// Global setting as last possible option
|
||||
|
|
|
@ -4,7 +4,7 @@ import EventEmitter from 'tiny-emitter';
|
|||
const IS_TOUCH = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
||||
|
||||
const IS_INTERNET_EXPLORER =
|
||||
window?.navigator.userAgent.match(/(MSIE|Trident)/);
|
||||
window?.navigator?.userAgent.match(/(MSIE|Trident)/);
|
||||
|
||||
/** Tests whether maybeChildEl is contained in containerEl **/
|
||||
const contains = (containerEl, maybeChildEl) => {
|
||||
|
|
Loading…
Reference in New Issue