소스 검색

Remove the commented-out code

maeshinshin 2 년 전
부모
커밋
48280d126e
1개의 변경된 파일1개의 추가작업 그리고 12개의 파일을 삭제
  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(() => {