사용자 상태 변경 구현

This commit is contained in:
dohyeons
2025-08-26 09:56:45 +09:00
parent b43a88a045
commit 4f6be8f551
5 changed files with 143 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import { Key, FileText, History } from "lucide-react";
import { Key, History } from "lucide-react";
import { useState } from "react";
import { User } from "@/types/user";
import { USER_TABLE_COLUMNS } from "@/constants/user";
@@ -198,11 +198,6 @@ export function UserTable({ users, isLoading, paginationInfo, onStatusToggle, on
onCheckedChange={(checked) => handleStatusToggle(user, checked)}
aria-label={`${user.userName} 상태 토글`}
/>
<span
className={`text-sm font-medium ${user.status === "active" ? "text-blue-600" : "text-gray-500"}`}
>
{user.status === "active" ? "활성" : "비활성"}
</span>
</div>
</TableCell>
<TableCell>