style(ui): format menu-item and use-url-filters

Auto-formatted line breaks for better readability.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
alejandrobailo
2026-01-22 15:34:19 +01:00
parent f52b4c06c1
commit 9a8a4e45ff
2 changed files with 4 additions and 2 deletions

View File

@@ -36,7 +36,8 @@ export const MenuItem = ({
const pathname = usePathname();
// Extract only the pathname from href (without query parameters) for comparison
const hrefPathname = href.split("?")[0];
const isActive = active !== undefined ? active : pathname.startsWith(hrefPathname);
const isActive =
active !== undefined ? active : pathname.startsWith(hrefPathname);
// Show tooltip always for Prowler Hub, or when sidebar is collapsed
const showTooltip = label === "Prowler Hub" ? !!tooltip : !isOpen;

View File

@@ -25,7 +25,8 @@ export const useUrlFilters = () => {
const [localIsPending, localStartTransition] = useTransition();
const isPending = sharedTransition?.isPending ?? localIsPending;
const startTransition = sharedTransition?.startTransition ?? localStartTransition;
const startTransition =
sharedTransition?.startTransition ?? localStartTransition;
const updateFilter = useCallback(
(key: string, value: string | string[] | null) => {