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 {
|
export interface LaneTab {
|
||||||
key: string;
|
key: string;
|
||||||
moduleId: number;
|
moduleId: number;
|
||||||
direction: 'ENTRY' | 'EXIT' | 'ALL';
|
direction: 'ENTRY' | 'EXIT';
|
||||||
name: string;
|
name: string;
|
||||||
address: number;
|
address: number;
|
||||||
tipo_acceso_nombre?: string;
|
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;
|
return tabs;
|
||||||
}, [config]);
|
}, [config]);
|
||||||
|
|
||||||
@@ -800,12 +793,10 @@ export const ControlPostView: React.FC = () => {
|
|||||||
{laneTabs.map((tab) => {
|
{laneTabs.map((tab) => {
|
||||||
const isActive = tab.key === activeLaneTabKey;
|
const isActive = tab.key === activeLaneTabKey;
|
||||||
const isEntry = tab.direction === 'ENTRY';
|
const isEntry = tab.direction === 'ENTRY';
|
||||||
const dotColor = isEntry ? '#10B981' : tab.direction === 'EXIT' ? '#EF4444' : '#60A5FA';
|
const dotColor = isEntry ? '#10B981' : '#EF4444';
|
||||||
const tabLabel = isEntry
|
const tabLabel = isEntry
|
||||||
? `ENTRADA VISITAS${tab.name ? ` (${tab.name})` : ''}`
|
? `ENTRADA VISITAS${tab.name ? ` (${tab.name})` : ''}`
|
||||||
: tab.direction === 'EXIT'
|
: `SALIDA DE VISITAS${tab.name ? ` (${tab.name})` : ''}`;
|
||||||
? `SALIDA DE VISITAS${tab.name ? ` (${tab.name})` : ''}`
|
|
||||||
: tab.name.toUpperCase();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user