Page Category
This commit is contained in:
@@ -20,6 +20,7 @@ export const ProductComponent = observer((props) => {
|
||||
const init = async () => {
|
||||
try {
|
||||
setIsLoading(true);
|
||||
//store.product.pageCategories=StrToLower(props.category)
|
||||
await store.product.getDataSubCategories();
|
||||
setIsLoading(false);
|
||||
} catch (e) {
|
||||
@@ -71,7 +72,7 @@ export const ProductComponent = observer((props) => {
|
||||
key: "status",
|
||||
render: (text, record) => (
|
||||
<Tag
|
||||
color={record?.status === "ACTIVE" ? "processing" : "#E3E8EE"}
|
||||
color={record?.status === "ACTIVE" ? "blue" : "#E3E8EE"}
|
||||
style={{color: "#4F566B"}}
|
||||
>
|
||||
{capitalize(record?.status)}
|
||||
@@ -84,7 +85,7 @@ export const ProductComponent = observer((props) => {
|
||||
key: "tersedia",
|
||||
render: (text, record) => (
|
||||
<Tag
|
||||
color={record?.status === "ACTIVE" ? "processing" : "#E3E8EE"}
|
||||
color={record?.status === "ACTIVE" ? "blue" : "#E3E8EE"}
|
||||
style={{color: "#4F566B"}}
|
||||
>
|
||||
{record?.status === "ACTIVE" ? " Ya" : "Tidak"}
|
||||
|
||||
Reference in New Issue
Block a user