fix: add "Is used" to verification list page

This commit is contained in:
Yang Luo 2024-04-20 00:18:52 +08:00
parent dfa4503f24
commit d9e44c1f2d

View File

@ -19,7 +19,7 @@ import * as VerificationBackend from "./backend/VerificationBackend";
import i18next from "i18next";
import {Link} from "react-router-dom";
import React from "react";
import {Table} from "antd";
import {Switch, Table} from "antd";
class VerificationListPage extends BaseListPage {
newVerification() {
@ -146,6 +146,18 @@ class VerificationListPage extends BaseListPage {
sorter: true,
...this.getColumnSearchProps("code"),
},
{
title: i18next.t("verification:Is used"),
dataIndex: "isUsed",
key: "isUsed",
width: "90px",
sorter: true,
render: (text, record, index) => {
return (
<Switch disabled checkedChildren="ON" unCheckedChildren="OFF" checked={text} />
);
},
},
];
const paginationProps = {