mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-21 02:30:14 +00:00
refactor: enum i18n
This commit is contained in:
+4
-4
@@ -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>
|
||||
)
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user