Bläddra i källkod

Remove the commented-out code

maeshinshin 2 år sedan
förälder
incheckning
48280d126e
1 ändrade filer med 1 tillägg och 12 borttagningar
  1. 1 12
      apps/app/src/components/SearchPage/SearchModalTriggerInput.tsx

+ 1 - 12
apps/app/src/components/SearchPage/SearchModalTriggerInput.tsx

@@ -2,7 +2,7 @@ import type {
   ForwardRefRenderFunction,
 } from 'react';
 import React, {
-  forwardRef, useCallback, useRef,
+  forwardRef, useCallback,
 } from 'react';
 
 // import type { TypeaheadRef } from 'react-bootstrap-typeahead';
@@ -19,17 +19,6 @@ type Props = TypeaheadProps & {
 const SearchModalTriggerinput: ForwardRefRenderFunction<IFocusable, Props> = (props: Props) => {
   const { keywordOnInit } = props;
 
-  /*
-  const inputRef : React.RefObject<HTMLInputElement> = React.createRef();
-
-  const blurFromSearchModalTriggerinput = () => {
-    const instance = inputRef.current;
-    if (instance != null) {
-      instance.blur();
-    }
-  };
-  */
-
   const { open: openSearchModal } = useSearchModal();
 
   const inputClickHandler = useCallback(() => {