refactor: enum i18n

This commit is contained in:
naiba
2024-12-14 10:39:07 +08:00
parent e0305723c3
commit 97d49de6be
12 changed files with 258 additions and 95 deletions
+4 -4
View File
@@ -70,7 +70,7 @@ export default function WAFPage() {
accessorKey: "lastBlockReason",
accessorFn: (row) => row.last_block_reason,
cell: ({ row }) => (
<span>{wafBlockReasons(t)[row.original.last_block_reason] || ""}</span>
<span>{wafBlockReasons[row.original.last_block_reason] || ""}</span>
),
},
{
@@ -141,9 +141,9 @@ export default function WAFPage() {
{header.isPlaceholder
? null
: flexRender(
header.column.columnDef.header,
header.getContext(),
)}
header.column.columnDef.header,
header.getContext(),
)}
</TableHead>
)
})}