{
this.updateField(table, index, "prompted", checked);
}} />
);
},
},
{
title: i18next.t("application:rule"),
dataIndex: "rule",
key: "rule",
width: "155px",
render: (text, record, index) => {
let options = [];
if (record.name === "ID") {
options = [
{id: "Random", name: "Random"},
{id: "Incremental", name: "Incremental"},
];
} else if (record.name === "Display name") {
options = [
{id: "None", name: "None"},
{id: "Real name", name: "Real name"},
{id: "First, last", name: "First, last"},
];
} else if (record.name === "Email") {
options = [
{id: "Normal", name: "Normal"},
{id: "No verification", name: "No verification"},
];
}
if (options.length === 0) {
return null;
}
return (
);
},
},
{
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)} />
);
},
},
];
return (
(
{this.props.title}
)}
/>
);
}
render() {
return (
{
this.renderTable(this.props.table)
}
);
}
}
export default SignupTable;