Scheduling infrastructure for absolutely everyone.
fix: make bookings nav item selected, while switching to other filter tabs. (#5176)
Nafees Nazik8c76da8d798a
diff --git a/packages/ui/v2/core/Shell.tsx b/packages/ui/v2/core/Shell.tsxindex abbf53e120c..b95b70b0f50 100644--- a/packages/ui/v2/core/Shell.tsx+++ b/packages/ui/v2/core/Shell.tsx@@ -446,6 +446,10 @@ const navigation: NavigationItemType[] = [href: "/bookings/upcoming",icon: Icon.FiCalendar,badge: <UnconfirmedBookingBadge />,+ isCurrent: ({ router }) => {+ const path = router.asPath.split("?")[0];+ return path.startsWith("/bookings");+ },},{name: "availability",