Fix small issues.

This commit is contained in:
Yang Luo
2021-05-23 23:38:38 +08:00
parent 02edb89602
commit 31d981baf1
5 changed files with 12 additions and 4 deletions

View File

@ -187,7 +187,7 @@ class ProviderEditPage extends React.Component {
</Col>
</Row>
</React.Fragment>
) : this.state.provider.category === "Phone" ? (
) : this.state.provider.category === "SMS" ? (
<React.Fragment>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
@ -222,7 +222,7 @@ class ProviderEditPage extends React.Component {
</React.Fragment>
) : null
}
{this.state.provider.category === "Phone" && this.state.provider.type === "tencent" ? (
{this.state.provider.category === "SMS" && this.state.provider.type === "tencent" ? (
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("provider:App ID")}:

View File

@ -148,8 +148,11 @@ class ProviderListPage extends React.Component {
title: i18next.t("provider:Client ID"),
dataIndex: 'clientId',
key: 'clientId',
width: '150px',
width: '100px',
sorter: (a, b) => a.clientId.localeCompare(b.clientId),
render: (text, record, index) => {
return Setting.getShortText(text);
}
},
// {
// title: 'Client secret',