fix(ui): eliminar pestaña 'Predio y Movimientos' para preservar el esquema estricto de Entrada y Salida

This commit is contained in:
Carlos Tello
2026-10-14 21:30:06 -03:00
parent a09cb6a95b
commit b09f8e4b5e
+3 -12
View File
@@ -25,7 +25,7 @@ import {
export interface LaneTab {
key: string;
moduleId: number;
direction: 'ENTRY' | 'EXIT' | 'ALL';
direction: 'ENTRY' | 'EXIT';
name: string;
address: number;
tipo_acceso_nombre?: string;
@@ -211,13 +211,6 @@ export const ControlPostView: React.FC = () => {
});
});
}
tabs.push({
key: 'overview',
moduleId: 0,
direction: 'ALL',
name: 'Predio y Movimientos',
address: 0,
});
return tabs;
}, [config]);
@@ -800,12 +793,10 @@ export const ControlPostView: React.FC = () => {
{laneTabs.map((tab) => {
const isActive = tab.key === activeLaneTabKey;
const isEntry = tab.direction === 'ENTRY';
const dotColor = isEntry ? '#10B981' : tab.direction === 'EXIT' ? '#EF4444' : '#60A5FA';
const dotColor = isEntry ? '#10B981' : '#EF4444';
const tabLabel = isEntry
? `ENTRADA VISITAS${tab.name ? ` (${tab.name})` : ''}`
: tab.direction === 'EXIT'
? `SALIDA DE VISITAS${tab.name ? ` (${tab.name})` : ''}`
: tab.name.toUpperCase();
: `SALIDA DE VISITAS${tab.name ? ` (${tab.name})` : ''}`;
return (
<button