fix(ui): eliminar pestaña 'Predio y Movimientos' para preservar el esquema estricto de Entrada y Salida
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user