summaryrefslogtreecommitdiff
path: root/lib/swp/table/swp-table.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-27 17:48:28 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-27 17:48:28 +0900
commit95984e67b8d57fbe1431fcfedf3bb682f28416b3 (patch)
tree79953157e70b30c3c65ae52a01adb65fd4344bee /lib/swp/table/swp-table.tsx
parent647e2e487238aed36ff9a880648e5c3e8725160f (diff)
(김준회) swp 영문 처리
Diffstat (limited to 'lib/swp/table/swp-table.tsx')
-rw-r--r--lib/swp/table/swp-table.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/swp/table/swp-table.tsx b/lib/swp/table/swp-table.tsx
index 6f810415..348f388b 100644
--- a/lib/swp/table/swp-table.tsx
+++ b/lib/swp/table/swp-table.tsx
@@ -47,7 +47,7 @@ export function SwpTable({
const statusMap = new Map<string, number>();
documents.forEach((doc) => {
- const status = doc.LTST_ACTV_STAT || "UNKNOWN";
+ const status = doc.LTST_ACTV_STAT || "Waiting";
statusMap.set(status, (statusMap.get(status) || 0) + 1);
});
@@ -68,7 +68,7 @@ export function SwpTable({
if (!selectedStatus) {
return documents;
}
- return documents.filter((doc) => doc.LTST_ACTV_STAT === selectedStatus);
+ return documents.filter((doc) => (doc.LTST_ACTV_STAT || "Waiting") === selectedStatus);
}, [documents, selectedStatus]);
const table = useReactTable({
@@ -95,7 +95,7 @@ export function SwpTable({
onClick={() => setSelectedStatus(null)}
className="h-9"
>
- 전체 ({documents.length})
+ All ({documents.length})
</Button>
{statusCounts.map((statusCount) => (
<Button
@@ -162,7 +162,7 @@ export function SwpTable({
) : (
<TableRow>
<TableCell colSpan={swpDocumentColumns.length} className="h-24 text-center">
- 데이터 없음
+ No data
</TableCell>
</TableRow>
)}