add: calendar view & calculator view

This commit is contained in:
Alexandro Uc Santos
2023-12-23 18:47:03 -06:00
parent 2bea640d49
commit f31104c8bb
16 changed files with 705 additions and 16 deletions

View File

@@ -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) {