|
@@ -2,6 +2,7 @@ import { useIntl } from "react-intl";
|
|
|
import { ProForm, ProFormText } from "@ant-design/pro-components";
|
|
import { ProForm, ProFormText } from "@ant-design/pro-components";
|
|
|
import { message } from "antd";
|
|
import { message } from "antd";
|
|
|
import { useNavigate } from "react-router-dom";
|
|
import { useNavigate } from "react-router-dom";
|
|
|
|
|
+import { EyeInvisibleOutlined, EyeTwoTone } from "@ant-design/icons";
|
|
|
|
|
|
|
|
import { useAppDispatch } from "../../../hooks";
|
|
import { useAppDispatch } from "../../../hooks";
|
|
|
import { IUser, signIn, TO_HOME } from "../../../reducers/current-user";
|
|
import { IUser, signIn, TO_HOME } from "../../../reducers/current-user";
|
|
@@ -70,9 +71,13 @@ const Widget = () => {
|
|
|
/>
|
|
/>
|
|
|
</ProForm.Group>
|
|
</ProForm.Group>
|
|
|
<ProForm.Group>
|
|
<ProForm.Group>
|
|
|
- <ProFormText
|
|
|
|
|
|
|
+ <ProFormText.Password
|
|
|
width="md"
|
|
width="md"
|
|
|
name="password"
|
|
name="password"
|
|
|
|
|
+ fieldProps={{
|
|
|
|
|
+ iconRender: (visible) =>
|
|
|
|
|
+ visible ? <EyeTwoTone /> : <EyeInvisibleOutlined />,
|
|
|
|
|
+ }}
|
|
|
required
|
|
required
|
|
|
label={intl.formatMessage({
|
|
label={intl.formatMessage({
|
|
|
id: "forms.fields.password.label",
|
|
id: "forms.fields.password.label",
|