From ff7ecbf3b97834d8dc5ca927fa9078bd106dd5b6 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Mon, 22 Apr 2024 17:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E7=82=B9=E7=82=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app/(admin)/components/users-table.tsx | 16 +++++++++++++++- app/app/login.scss | 4 ++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/app/app/(admin)/components/users-table.tsx b/app/app/(admin)/components/users-table.tsx index 203185294..f6226899e 100644 --- a/app/app/(admin)/components/users-table.tsx +++ b/app/app/(admin)/components/users-table.tsx @@ -10,6 +10,7 @@ import { Button, notification, Popconfirm, + Checkbox, } from "antd"; import type { GetRef, TableColumnsType } from "antd"; // import { headers } from 'next/headers' @@ -187,6 +188,18 @@ function UsersTable({ users, setUsers, loading }: UserInterface) { dataIndex: "updatedAt", render: (value) => getCurrentTime(new Date(value)), }, + { + title: "allowToLogin", + dataIndex: "allowToLogin", + width: 120, + render: (value) => { + return ( +
+ +
+ ); + }, + }, { title: "Action", dataIndex: "", @@ -195,7 +208,8 @@ function UsersTable({ users, setUsers, loading }: UserInterface) { {contextHolder}