feat: add tooltips for xxxeditPage fields (#135)

Signed-off-by: wasabi <690898835@qq.com>
This commit is contained in:
wasabi
2021-06-30 00:58:25 +08:00
committed by GitHub
parent f26b6c2d11
commit 7eb4da6e54
7 changed files with 152 additions and 65 deletions

View File

@ -2,6 +2,7 @@ import React from "react";
import {Cascader, Col, Input, Row, Select} from 'antd';
import i18next from "i18next";
import * as UserBackend from "../backend/UserBackend";
import * as Setting from "../Setting";
const { Option } = Select;
@ -60,7 +61,7 @@ class AffiliationSelect extends React.Component {
this.props.application?.affiliationUrl === "" ? null : (
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={this.props.labelSpan}>
{i18next.t("user:Address")}:
{Setting.getLabel(i18next.t("user:Address"), i18next.t("user:Address - Tooltip"))} :
</Col>
<Col span={24 - this.props.labelSpan} >
<Cascader style={{width: '100%', maxWidth: '400px'}} value={this.props.user.address} options={this.state.addressOptions} onChange={value => {
@ -75,7 +76,7 @@ class AffiliationSelect extends React.Component {
}
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={this.props.labelSpan}>
{i18next.t("user:Affiliation")}:
{Setting.getLabel(i18next.t("user:Affiliation"), i18next.t("user:Affiliation - Tooltip"))} :
</Col>
<Col span={24 - this.props.labelSpan} >
{