init
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
export function getStatus(status) {
|
||||
const statusList = getStatusList();
|
||||
|
||||
return statusList[status];
|
||||
}
|
||||
|
||||
export function getStatusList(){
|
||||
return {
|
||||
published: {
|
||||
value: "published",
|
||||
text: "Published",
|
||||
bg: "success",
|
||||
color: "white",
|
||||
},
|
||||
trashed: {
|
||||
value: "trashed",
|
||||
text: "Trashed",
|
||||
bg: "danger",
|
||||
color: "white",
|
||||
},
|
||||
draft: {
|
||||
value: "draft",
|
||||
text: "Draft",
|
||||
bg: "warning",
|
||||
color: "dark",
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user