Преглед на файлове

Changed ForwardRefRenderFunction to React.FC

maeshinshin преди 2 години
родител
ревизия
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();