mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-16 10:43:35 +08:00
Improve UI.
This commit is contained in:
@ -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) => {
|
||||
<Col style={{margin: "0px auto 40px auto", width: 1000, height: 300}}>
|
||||
<Row style={{width: "100%", marginBottom: "20px"}}>
|
||||
<Input
|
||||
addonBefore={i18next.t("user:New " + destType)}
|
||||
addonBefore={destType === "email" ? i18next.t("user:New Email") : i18next.t("user:New phone")}
|
||||
prefix={destType === "email" ? <MailOutlined /> : <PhoneOutlined />}
|
||||
placeholder={placeHolder}
|
||||
onChange={e => setDest(e.target.value)}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user