feat: update column content
This commit is contained in:
parent
27954102ec
commit
571a58c2bd
|
|
@ -97,15 +97,24 @@ const useTableColumns = () => {
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
const isPublish = row.original.isPublish;
|
const isPublish = row.original.isPublish;
|
||||||
const isPublishOnPolda = row.original.isPublishOnPolda;
|
const isPublishOnPolda = row.original.isPublishOnPolda;
|
||||||
|
const creatorGroupParentLevelId = row.original.creatorGroupParentLevelId;
|
||||||
|
|
||||||
let displayText = "-";
|
let displayText = "-";
|
||||||
if (isPublish && !isPublishOnPolda) {
|
if (isPublish && !isPublishOnPolda) {
|
||||||
displayText = "Mabes";
|
displayText = "Mabes";
|
||||||
} else if (isPublish && isPublishOnPolda) {
|
} else if (isPublish && isPublishOnPolda) {
|
||||||
|
if (Number(creatorGroupParentLevelId) == 761) {
|
||||||
|
displayText = "Mabes & Satker";
|
||||||
|
} else {
|
||||||
displayText = "Mabes & Polda";
|
displayText = "Mabes & Polda";
|
||||||
|
}
|
||||||
} else if (!isPublish && isPublishOnPolda) {
|
} else if (!isPublish && isPublishOnPolda) {
|
||||||
|
if (Number(creatorGroupParentLevelId) == 761) {
|
||||||
|
displayText = "Satker";
|
||||||
|
} else {
|
||||||
displayText = "Polda";
|
displayText = "Polda";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="text-center whitespace-nowrap" title={displayText}>
|
<div className="text-center whitespace-nowrap" title={displayText}>
|
||||||
|
|
|
||||||
|
|
@ -100,15 +100,24 @@ const useTableColumns = () => {
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
const isPublish = row.original.isPublish;
|
const isPublish = row.original.isPublish;
|
||||||
const isPublishOnPolda = row.original.isPublishOnPolda;
|
const isPublishOnPolda = row.original.isPublishOnPolda;
|
||||||
|
const creatorGroupParentLevelId = row.original.creatorGroupParentLevelId;
|
||||||
|
|
||||||
let displayText = "-";
|
let displayText = "-";
|
||||||
if (isPublish && !isPublishOnPolda) {
|
if (isPublish && !isPublishOnPolda) {
|
||||||
displayText = "Mabes";
|
displayText = "Mabes";
|
||||||
} else if (isPublish && isPublishOnPolda) {
|
} else if (isPublish && isPublishOnPolda) {
|
||||||
|
if (Number(creatorGroupParentLevelId) == 761) {
|
||||||
|
displayText = "Mabes & Satker";
|
||||||
|
} else {
|
||||||
displayText = "Mabes & Polda";
|
displayText = "Mabes & Polda";
|
||||||
|
}
|
||||||
} else if (!isPublish && isPublishOnPolda) {
|
} else if (!isPublish && isPublishOnPolda) {
|
||||||
|
if (Number(creatorGroupParentLevelId) == 761) {
|
||||||
|
displayText = "Satker";
|
||||||
|
} else {
|
||||||
displayText = "Polda";
|
displayText = "Polda";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="text-center whitespace-nowrap" title={displayText}>
|
<div className="text-center whitespace-nowrap" title={displayText}>
|
||||||
|
|
|
||||||
|
|
@ -97,15 +97,24 @@ const useTableColumns = () => {
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
const isPublish = row.original.isPublish;
|
const isPublish = row.original.isPublish;
|
||||||
const isPublishOnPolda = row.original.isPublishOnPolda;
|
const isPublishOnPolda = row.original.isPublishOnPolda;
|
||||||
|
const creatorGroupParentLevelId = row.original.creatorGroupParentLevelId;
|
||||||
|
|
||||||
let displayText = "-";
|
let displayText = "-";
|
||||||
if (isPublish && !isPublishOnPolda) {
|
if (isPublish && !isPublishOnPolda) {
|
||||||
displayText = "Mabes";
|
displayText = "Mabes";
|
||||||
} else if (isPublish && isPublishOnPolda) {
|
} else if (isPublish && isPublishOnPolda) {
|
||||||
|
if (Number(creatorGroupParentLevelId) == 761) {
|
||||||
|
displayText = "Mabes & Satker";
|
||||||
|
} else {
|
||||||
displayText = "Mabes & Polda";
|
displayText = "Mabes & Polda";
|
||||||
|
}
|
||||||
} else if (!isPublish && isPublishOnPolda) {
|
} else if (!isPublish && isPublishOnPolda) {
|
||||||
|
if (Number(creatorGroupParentLevelId) == 761) {
|
||||||
|
displayText = "Satker";
|
||||||
|
} else {
|
||||||
displayText = "Polda";
|
displayText = "Polda";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="text-center whitespace-nowrap" title={displayText}>
|
<div className="text-center whitespace-nowrap" title={displayText}>
|
||||||
|
|
|
||||||
|
|
@ -97,15 +97,24 @@ const useTableColumns = () => {
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
const isPublish = row.original.isPublish;
|
const isPublish = row.original.isPublish;
|
||||||
const isPublishOnPolda = row.original.isPublishOnPolda;
|
const isPublishOnPolda = row.original.isPublishOnPolda;
|
||||||
|
const creatorGroupParentLevelId = row.original.creatorGroupParentLevelId;
|
||||||
|
|
||||||
let displayText = "-";
|
let displayText = "-";
|
||||||
if (isPublish && !isPublishOnPolda) {
|
if (isPublish && !isPublishOnPolda) {
|
||||||
displayText = "Mabes";
|
displayText = "Mabes";
|
||||||
} else if (isPublish && isPublishOnPolda) {
|
} else if (isPublish && isPublishOnPolda) {
|
||||||
|
if (Number(creatorGroupParentLevelId) == 761) {
|
||||||
|
displayText = "Mabes & Satker";
|
||||||
|
} else {
|
||||||
displayText = "Mabes & Polda";
|
displayText = "Mabes & Polda";
|
||||||
|
}
|
||||||
} else if (!isPublish && isPublishOnPolda) {
|
} else if (!isPublish && isPublishOnPolda) {
|
||||||
|
if (Number(creatorGroupParentLevelId) == 761) {
|
||||||
|
displayText = "Satker";
|
||||||
|
} else {
|
||||||
displayText = "Polda";
|
displayText = "Polda";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="text-center whitespace-nowrap" title={displayText}>
|
<div className="text-center whitespace-nowrap" title={displayText}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue