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>pull/5210/head^2
parent
4210f35e9c
commit
8c76da8d79
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue