浏览代码

Fix frontend linter warnings (#1647)

* quick fix

* fix SendMessage component

Co-authored-by: Anton Zorin <zorii4@Antons-MacBook-Pro.local>
Zorii4 3 年之前
父节点
当前提交
627f1391bc

+ 1 - 1
kafka-ui-react-app/src/components/Brokers/Brokers.tsx

@@ -38,7 +38,7 @@ const Brokers: React.FC = () => {
   React.useEffect(() => {
     dispatch(fetchClusterStats(clusterName));
     dispatch(fetchBrokers(clusterName));
-  }, [fetchClusterStats, fetchBrokers, clusterName, dispatch]);
+  }, [clusterName, dispatch]);
 
   useInterval(() => {
     fetchClusterStats(clusterName);

+ 1 - 1
kafka-ui-react-app/src/components/Schemas/Diff/DiffContainer.ts

@@ -1,5 +1,5 @@
 import { connect } from 'react-redux';
-import { ClusterName, RootState } from 'redux/interfaces';
+import { RootState } from 'redux/interfaces';
 import { RouteComponentProps, withRouter } from 'react-router-dom';
 import {
   getAreSchemaVersionsFulfilled,

+ 1 - 1
kafka-ui-react-app/src/components/Topics/Topic/SendMessage/SendMessage.tsx

@@ -88,7 +88,7 @@ const SendMessage: React.FC = () => {
       key: keyDefaultValue,
       content: contentDefaultValue,
     });
-  }, [keyDefaultValue, contentDefaultValue]);
+  }, [keyDefaultValue, contentDefaultValue, reset]);
 
   const onSubmit = async (data: {
     key: string;