From 6bbe92692a672e576f47a5befe6c0588655ca851 Mon Sep 17 00:00:00 2001 From: Donkoko Date: Fri, 10 May 2024 16:50:19 +0300 Subject: [PATCH] fixing sidebar for personal workspace --- app/components/layout/sidebar/menu-items.tsx | 7 ++++--- app/components/shared/controlled-action-button.tsx | 6 ++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/components/layout/sidebar/menu-items.tsx b/app/components/layout/sidebar/menu-items.tsx index 59ee78592..f93b10030 100644 --- a/app/components/layout/sidebar/menu-items.tsx +++ b/app/components/layout/sidebar/menu-items.tsx @@ -49,7 +49,7 @@ const MenuItems = ({ fetcher }: { fetcher: FetcherWithComponents }) => { ) : null} {menuItemsTop.map((item) => - item.to === "bookings" ? ( + item.to === "bookings" || item.to === "calendar" ? (
  • }) => { ), - message: - "Bookings is a premium feature only available for Team workspaces. ", + message: `${ + item.to[0].toUpperCase() + item.to.substring(1) + } is a premium feature only available for Team workspaces.`, ctaText: "upgrading to a team plan", }} buttonProps={{ diff --git a/app/components/shared/controlled-action-button.tsx b/app/components/shared/controlled-action-button.tsx index 045910d86..bebf08962 100644 --- a/app/components/shared/controlled-action-button.tsx +++ b/app/components/shared/controlled-action-button.tsx @@ -77,10 +77,8 @@ const HoverMessage = ({ {buttonContent.message} {!skipCta ? ( - Please consider{" "} - + {" "} + Please switch to your team workspace to use this feature ) : null} .