Просмотр исходного кода

Changed ForwardRefRenderFunction to React.FC

maeshinshin 2 лет назад
Родитель
Сommit
0daf7deeee
1 измененных файлов с 2 добавлено и 7 удалено
  1. 2 7
      apps/app/src/components/SearchPage/SearchModalTriggerInput.tsx

+ 2 - 7
apps/app/src/components/SearchPage/SearchModalTriggerInput.tsx

@@ -1,19 +1,14 @@
-import type {
-  ForwardRefRenderFunction,
-} from 'react';
 import React, {
-  forwardRef, useCallback,
+  useCallback,
 } from 'react';
 
-import type { IFocusable } from '~/client/interfaces/focusable';
-
 import { useSearchModal } from '../../features/search/client/stores/search';
 
 type Props = {
   keywordOnInit: string,
 };
 
-export const SearchModalTriggerinput: ForwardRefRenderFunction<IFocusable, Props> = (props: Props) => {
+export const SearchModalTriggerinput: React.FC<Props> = (props: Props) => {
   const { keywordOnInit } = props;
 
   const { open: openSearchModal } = useSearchModal();