fix: make bookings nav item selected, while switching to other filter tabs. (#5176)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Nafees Nazik
2022-10-27 09:45:01 +00:00
committed by GitHub
co-authored by kodiakhq[bot]
parent 4210f35e9c
commit 8c76da8d79
+4
View File
@@ -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",