You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/06/01 10:33:15 UTC
[incubator-apisix-dashboard] 01/02: codes clean
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch fix-routes
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git
commit 8033eded4e73babb5ae024db1f8ec9f52ad357bb
Author: juzhiyuan <jj...@gmail.com>
AuthorDate: Mon Jun 1 18:31:58 2020 +0800
codes clean
---
src/pages/Routes/components/Step1/MatchingRulesView.tsx | 8 ++------
src/pages/Routes/components/Step1/index.tsx | 2 +-
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/pages/Routes/components/Step1/MatchingRulesView.tsx b/src/pages/Routes/components/Step1/MatchingRulesView.tsx
index 3d27613..ae87d6c 100644
--- a/src/pages/Routes/components/Step1/MatchingRulesView.tsx
+++ b/src/pages/Routes/components/Step1/MatchingRulesView.tsx
@@ -1,22 +1,18 @@
import React, { useState } from 'react';
-import { FormInstance } from 'antd/es/form';
import { Button, Table, Modal, Form, Select, Input, Space } from 'antd';
import PanelSection from '../PanelSection';
-interface Props extends RouteModule.Data {
- form: FormInstance;
-}
+interface Props extends RouteModule.Data {}
const MatchingRulesView: React.FC<Props> = ({ data, onChange }) => {
const { advancedMatchingRules } = data.step1Data;
const [visible, setVisible] = useState(false);
+ const [modalForm] = Form.useForm();
const { Option } = Select;
- const [modalForm] = Form.useForm();
-
const onOk = () => {
modalForm.validateFields().then((value) => {
onChange({
diff --git a/src/pages/Routes/components/Step1/index.tsx b/src/pages/Routes/components/Step1/index.tsx
index e5af4cc..bb9b854 100644
--- a/src/pages/Routes/components/Step1/index.tsx
+++ b/src/pages/Routes/components/Step1/index.tsx
@@ -20,7 +20,7 @@ const Step1: React.FC<RouteModule.Data> = (props) => {
<>
<MetaView form={form} />
<RequestConfigView form={form} {...props} />
- <MatchingRulesView form={form} {...props} />
+ <MatchingRulesView {...props} />
</>
);
};