feat(shell): mover Pipeline RRSS dentro de Biblioteca de activos debajo de Zona de marca
This commit is contained in:
@@ -68,13 +68,6 @@ const NAV_ITEMS: NavItem[] = [
|
||||
iconClass: 'text-amber-500',
|
||||
moduleId: 'calendario',
|
||||
},
|
||||
{
|
||||
href: '/dashboard/creatives',
|
||||
label: 'Pipeline RRSS',
|
||||
icon: Images,
|
||||
iconClass: 'text-pink-500',
|
||||
moduleId: 'pipeline',
|
||||
},
|
||||
{
|
||||
href: '/dashboard/activos',
|
||||
label: 'Biblioteca de Activos',
|
||||
@@ -256,7 +249,9 @@ export default function DashboardShell({
|
||||
pathname === '/dashboard/activos' ||
|
||||
(pathname !== null && pathname.startsWith('/dashboard/activos/')) ||
|
||||
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>>({});
|
||||
|
||||
@@ -296,7 +291,7 @@ export default function DashboardShell({
|
||||
);
|
||||
}
|
||||
if (item.moduleId === 'activos') {
|
||||
return moduleOn('activos') || moduleOn('marca');
|
||||
return moduleOn('activos') || moduleOn('marca') || moduleOn('pipeline');
|
||||
}
|
||||
return moduleOn(item.moduleId);
|
||||
};
|
||||
@@ -442,6 +437,23 @@ export default function DashboardShell({
|
||||
<span className="truncate">Zona de marca</span>
|
||||
</Link>
|
||||
) : 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>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user