fix(admin): correct metadata option labels
This commit is contained in:
@@ -84,7 +84,7 @@ export default function AdminMetaOptions({ kind }: { kind: Kind }) {
|
|||||||
|
|
||||||
const openEdit = (item: MetaOptionSchema) => {
|
const openEdit = (item: MetaOptionSchema) => {
|
||||||
setEditing(item);
|
setEditing(item);
|
||||||
setForm({ code: item.code, name: item.name });
|
setForm({ code: item.code, name: item.label });
|
||||||
setOpen(true);
|
setOpen(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ export default function AdminMetaOptions({ kind }: { kind: Kind }) {
|
|||||||
) : (
|
) : (
|
||||||
items.map((item) => (
|
items.map((item) => (
|
||||||
<tr key={item.id} className="border-t hover:bg-muted/40">
|
<tr key={item.id} className="border-t hover:bg-muted/40">
|
||||||
<td className="px-4 py-3 font-medium">{item.name}</td>
|
<td className="px-4 py-3 font-medium">{item.label}</td>
|
||||||
<td className="px-4 py-3 text-muted-foreground">{item.code}</td>
|
<td className="px-4 py-3 text-muted-foreground">{item.code}</td>
|
||||||
<td className="px-4 py-3">{formatNumberPersian(item.user_count ?? 0)}</td>
|
<td className="px-4 py-3">{formatNumberPersian(item.user_count ?? 0)}</td>
|
||||||
<td className="px-4 py-3">
|
<td className="px-4 py-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user