add: calendar view & calculator view
This commit is contained in:
@@ -33,6 +33,41 @@ export const getStatusLoad = (load) => {
|
||||
};
|
||||
}
|
||||
|
||||
export const eventStatusLoad = (loadStatus) => {
|
||||
let color;
|
||||
let status;
|
||||
switch (loadStatus) {
|
||||
case 'Published':
|
||||
status = "Publicado";
|
||||
color = "yellow";
|
||||
break;
|
||||
case 'Loading':
|
||||
color = "green";
|
||||
status = "Cargando";
|
||||
break;
|
||||
case 'Transit':
|
||||
status = "En Transito";
|
||||
color = "red"
|
||||
break;
|
||||
case 'Downloading':
|
||||
status = "Descargando";
|
||||
color = "blue"
|
||||
break;
|
||||
case 'Delivered':
|
||||
color = "blue";
|
||||
status = "Entregado";
|
||||
break;
|
||||
default:
|
||||
color = "yellow";
|
||||
status = 'Sin publicar';
|
||||
break;
|
||||
}
|
||||
return {
|
||||
color,
|
||||
status
|
||||
};
|
||||
}
|
||||
|
||||
export const getStatusPublished = (load) => {
|
||||
let status;
|
||||
switch (load.status) {
|
||||
|
||||
Reference in New Issue
Block a user