Merge remote-tracking branch 'origin/feat/docker-logs' into insiders/ui-ux
# Conflicts: # apps/nextjs/src/app/[locale]/manage/tools/docker/docker-table.tsx # apps/nextjs/src/app/[locale]/manage/tools/logs/terminal.tsx # apps/nextjs/src/components/layout/navigation-link.tsx # pnpm-lock.yaml
This commit is contained in:
10 files changed
+437
-476
No files matched your search
@@ -26,7 +26,7 @@ const NavLinkHref = (props: NavigationLinkHref) => {
|
||||
label={props.label}
|
||||
leftSection={props.icon}
|
||||
href={props.href}
|
||||
active={pathname === props.href}
|
||||
active={pathname === props.href || pathname.startsWith(`${props.href}/`)}
|
||||
/>
|
||||
);
|
||||
return <TourTarget id={tourId}>{link}</TourTarget>;
|
||||
@@ -34,7 +34,7 @@ const NavLinkHref = (props: NavigationLinkHref) => {
|
||||
|
||||
const NavLinkWithItems = (props: NavigationLinkWithItems) => {
|
||||
const pathname = usePathname();
|
||||
const isActive = props.items.some((item) => item.href === pathname);
|
||||
const isActive = props.items.some((item) => pathname === item.href || pathname.startsWith(`${item.href}/`));
|
||||
const nav = (
|
||||
<NavLink label={props.label} leftSection={props.icon} defaultOpened={isActive}>
|
||||
{props.items.map((item) => (
|
||||
|
||||
Reference in new issue
Block a user