Always show Pipeline RRSS under Social when Social is visible.
Remove extra module gates so the editorial pipeline link cannot be filtered out of the sidebar. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -236,18 +236,8 @@ export default function DashboardShell({
|
|||||||
|
|
||||||
<nav className="flex-1 overflow-y-auto space-y-1.5 pr-1">
|
<nav className="flex-1 overflow-y-auto space-y-1.5 pr-1">
|
||||||
{visibleNav.map((item) => {
|
{visibleNav.map((item) => {
|
||||||
|
// Sub-enlaces de Social: siempre que Social esté en el menú.
|
||||||
const underSocial = item.moduleId === 'social';
|
const underSocial = item.moduleId === 'social';
|
||||||
const showCalendarioUnderSocial =
|
|
||||||
underSocial &&
|
|
||||||
(isAgency ||
|
|
||||||
!enabledModules ||
|
|
||||||
enabledModules.calendario !== false);
|
|
||||||
const showPipelineRrssUnderSocial =
|
|
||||||
underSocial &&
|
|
||||||
(isAgency ||
|
|
||||||
!enabledModules ||
|
|
||||||
enabledModules.calendario !== false ||
|
|
||||||
enabledModules.creatives !== false);
|
|
||||||
const subLinkCls = (href: string) =>
|
const subLinkCls = (href: string) =>
|
||||||
`ml-4 flex items-center gap-2.5 px-3 py-2 rounded-lg text-xs font-medium transition-all ${
|
`ml-4 flex items-center gap-2.5 px-3 py-2 rounded-lg text-xs font-medium transition-all ${
|
||||||
isActive(pathname, href)
|
isActive(pathname, href)
|
||||||
@@ -257,7 +247,8 @@ export default function DashboardShell({
|
|||||||
return (
|
return (
|
||||||
<div key={item.href} className="space-y-0.5">
|
<div key={item.href} className="space-y-0.5">
|
||||||
<NavLink item={item} onNavigate={close} />
|
<NavLink item={item} onNavigate={close} />
|
||||||
{showCalendarioUnderSocial ? (
|
{underSocial ? (
|
||||||
|
<>
|
||||||
<Link
|
<Link
|
||||||
href="/dashboard/calendario"
|
href="/dashboard/calendario"
|
||||||
onClick={close}
|
onClick={close}
|
||||||
@@ -266,8 +257,6 @@ export default function DashboardShell({
|
|||||||
<CalendarDays className="w-3.5 h-3.5 shrink-0 text-pink-500" />
|
<CalendarDays className="w-3.5 h-3.5 shrink-0 text-pink-500" />
|
||||||
Calendario editorial
|
Calendario editorial
|
||||||
</Link>
|
</Link>
|
||||||
) : null}
|
|
||||||
{showPipelineRrssUnderSocial ? (
|
|
||||||
<Link
|
<Link
|
||||||
href="/dashboard/creatives"
|
href="/dashboard/creatives"
|
||||||
onClick={close}
|
onClick={close}
|
||||||
@@ -276,6 +265,7 @@ export default function DashboardShell({
|
|||||||
<Images className="w-3.5 h-3.5 shrink-0 text-fuchsia-500" />
|
<Images className="w-3.5 h-3.5 shrink-0 text-fuchsia-500" />
|
||||||
Pipeline RRSS
|
Pipeline RRSS
|
||||||
</Link>
|
</Link>
|
||||||
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user