{
this.updateField(table, index, "prompted", checked);
}} />
);
},
},
{
title: i18next.t("application:Rule"),
dataIndex: "rule",
key: "rule",
width: "100px",
render: (text, record, index) => {
if (record.provider?.type === "Google") {
if (text === "None") {
text = "Default";
}
return (
);
} else if (record.provider?.category === "Captcha") {
return (
);
} else {
return null;
}
},
},
{
title: i18next.t("general:Action"),
key: "action",
width: "100px",
render: (text, record, index) => {
return (
} size="small" onClick={() => this.upRow(table, index)} />
} size="small" onClick={() => this.downRow(table, index)} />
} size="small" onClick={() => this.deleteRow(table, index)} />
);
},
},
];
if (!this.props.application.enableSignUp) {
columns = columns.filter(column => column.key !== "canSignUp");
}
return (
(
{this.props.title}
)}
/>
);
}
render() {
return (
{
this.renderTable(this.props.table)
}
);
}
}
export default ProviderTable;