update
This commit is contained in:
@@ -226,9 +226,9 @@ const columns: DataTableColumn<SubmissionOut>[] = [
|
|||||||
width: 42,
|
width: 42,
|
||||||
render: (row) => {
|
render: (row) => {
|
||||||
const map: Record<string, { label: string; type: "success" | "default" | "warning" }> = {
|
const map: Record<string, { label: string; type: "success" | "default" | "warning" }> = {
|
||||||
featured: { label: "精", type: "success" },
|
featured: { label: "夯", type: "success" },
|
||||||
pending: { label: "评", type: "default" },
|
pending: { label: "N", type: "default" },
|
||||||
low: { label: "改", type: "warning" },
|
low: { label: "拉", type: "warning" },
|
||||||
}
|
}
|
||||||
if (!row.zone || !map[row.zone]) return null
|
if (!row.zone || !map[row.zone]) return null
|
||||||
const { label, type } = map[row.zone]
|
const { label, type } = map[row.zone]
|
||||||
|
|||||||
Reference in New Issue
Block a user