feat(shell): mover Pipeline RRSS dentro de Biblioteca de activos debajo de Zona de marca

This commit is contained in:
Marcos Fargas
2026-10-18 00:05:37 +02:00
parent e8a0062b46
commit 9767035034

View File

@@ -68,13 +68,6 @@ const NAV_ITEMS: NavItem[] = [
iconClass: 'text-amber-500', iconClass: 'text-amber-500',
moduleId: 'calendario', moduleId: 'calendario',
}, },
{
href: '/dashboard/creatives',
label: 'Pipeline RRSS',
icon: Images,
iconClass: 'text-pink-500',
moduleId: 'pipeline',
},
{ {
href: '/dashboard/activos', href: '/dashboard/activos',
label: 'Biblioteca de Activos', label: 'Biblioteca de Activos',
@@ -256,7 +249,9 @@ export default function DashboardShell({
pathname === '/dashboard/activos' || pathname === '/dashboard/activos' ||
(pathname !== null && pathname.startsWith('/dashboard/activos/')) || (pathname !== null && pathname.startsWith('/dashboard/activos/')) ||
pathname === '/dashboard/marca' || pathname === '/dashboard/marca' ||
(pathname !== null && pathname.startsWith('/dashboard/marca/')); (pathname !== null && pathname.startsWith('/dashboard/marca/')) ||
pathname === '/dashboard/creatives' ||
(pathname !== null && pathname.startsWith('/dashboard/creatives/'));
const [expandedSections, setExpandedSections] = useState<Record<string, boolean>>({}); const [expandedSections, setExpandedSections] = useState<Record<string, boolean>>({});
@@ -296,7 +291,7 @@ export default function DashboardShell({
); );
} }
if (item.moduleId === 'activos') { if (item.moduleId === 'activos') {
return moduleOn('activos') || moduleOn('marca'); return moduleOn('activos') || moduleOn('marca') || moduleOn('pipeline');
} }
return moduleOn(item.moduleId); return moduleOn(item.moduleId);
}; };
@@ -442,6 +437,23 @@ export default function DashboardShell({
<span className="truncate">Zona de marca</span> <span className="truncate">Zona de marca</span>
</Link> </Link>
) : null} ) : null}
{moduleOn('pipeline') ? (
<Link
href="/dashboard/creatives"
onClick={close}
className={subLinkCls('/dashboard/creatives')}
>
<Images
className={`h-3.5 w-3.5 shrink-0 ${
isActive(pathname, '/dashboard/creatives')
? 'text-pink-400'
: 'text-mist-400 group-hover:text-mist-300'
}`}
/>
<span className="truncate">Pipeline RRSS</span>
</Link>
) : null}
</div> </div>
) : null} ) : null}
</div> </div>