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
Nafees Nazik 2022-10-27 15:15:01 +05:30 committed by GitHub
parent 4210f35e9c
commit 8c76da8d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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",