Explorar o código

:fire: onSearch

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
cc687d284b
Modificáronse 1 ficheiros con 1 adicións e 9 borrados
  1. 1 9
      dashboard/src/components/dict/DictComponent.tsx

+ 1 - 9
dashboard/src/components/dict/DictComponent.tsx

@@ -19,15 +19,7 @@ const DictComponentWidget = ({ word }: IWidgetDict) => {
     }
   }, [searchWord]);
 
-  return (
-    <Dictionary
-      word={wordSearch}
-      compact={true}
-      onSearch={(value: string, isFactor?: boolean) => {
-        store.dispatch(lookup(value));
-      }}
-    />
-  );
+  return <Dictionary word={wordSearch} compact={true} />;
 };
 
 export default DictComponentWidget;