Răsfoiți Sursa

Changed ForwardRefRenderFunction to React.FC

maeshinshin 2 ani în urmă
părinte
comite
0daf7deeee

+ 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();