diff --git a/web/src/ResetModal.js b/web/src/ResetModal.js
index a6ea7788..950e35a2 100644
--- a/web/src/ResetModal.js
+++ b/web/src/ResetModal.js
@@ -18,6 +18,7 @@ import React from "react";
import * as Setting from "./Setting"
import * as UserBackend from "./backend/UserBackend"
import {CountDownInput} from "./component/CountDownInput";
+import {MailOutlined, PhoneOutlined} from "@ant-design/icons";
export const ResetModal = (props) => {
const [visible, setVisible] = React.useState(false);
@@ -78,7 +79,8 @@ export const ResetModal = (props) => {
: }
placeholder={placeHolder}
onChange={e => setDest(e.target.value)}
/>
diff --git a/web/src/auth/ForgetPage.js b/web/src/auth/ForgetPage.js
index 259c2208..051e854a 100644
--- a/web/src/auth/ForgetPage.js
+++ b/web/src/auth/ForgetPage.js
@@ -13,7 +13,7 @@
// limitations under the License.
import React from "react";
-import {Button, Col, Divider, Form, Select, Input, Row, Steps} from "antd";
+import {Button, Col, Form, Select, Input, Row, Steps} from "antd";
import * as AuthBackend from "./AuthBackend";
import * as ApplicationBackend from "../backend/ApplicationBackend";
import * as Util from "./Util";
@@ -174,13 +174,13 @@ class ForgetPage extends React.Component {
if (this.state.phone !== "") {
options.push(
);
} else if (this.state.email !== "") {
options.push(
);
}
diff --git a/web/src/component/CountDownInput.js b/web/src/component/CountDownInput.js
index ba23b476..11cf8d22 100644
--- a/web/src/component/CountDownInput.js
+++ b/web/src/component/CountDownInput.js
@@ -17,12 +17,12 @@ import React from "react";
import * as Setting from "../Setting";
import i18next from "i18next";
import * as UserBackend from "../backend/UserBackend";
-import { AuditOutlined, VerifiedOutlined } from "@ant-design/icons";
+import {SafetyOutlined} from "@ant-design/icons";
const { Search } = Input;
export const CountDownInput = (props) => {
- const {defaultButtonText, disabled, prefix, textBefore, placeHolder, onChange, coolDownTime, onButtonClick, onButtonClickArgs} = props;
+ const {defaultButtonText, disabled, textBefore, placeHolder, onChange, coolDownTime, onButtonClick, onButtonClickArgs} = props;
const [buttonText, setButtonText] = React.useState(defaultButtonText);
const [visible, setVisible] = React.useState(false);
const [key, setKey] = React.useState("");
@@ -90,7 +90,7 @@ export const CountDownInput = (props) => {
}}
/>
- setKey(e.target.value)} />
+ } placeholder={i18next.t("general:Captcha")} onPressEnter={handleOk} onChange={e => setKey(e.target.value)} />
)
@@ -101,23 +101,12 @@ export const CountDownInput = (props) => {
return null;
}
- const getIcon = (prefix) => {
- switch (prefix) {
- case "VerifiedOutlined":
- return ;
- case "AuditOutlined":
- return ;
- default:
- return null;
- }
- };
-
return (
-
+
}
placeholder={placeHolder}
onChange={e => onChange(e.target.value)}
enterButton={
@@ -146,6 +135,6 @@ export const CountDownInput = (props) => {
renderCheck()
}
-
+
);
}