Przeglądaj źródła

:fire: onSearch

visuddhinanda 2 lat temu
rodzic
commit
cc687d284b
1 zmienionych plików z 1 dodań i 9 usunięć
  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;