Skip to content

Commit

Permalink
fixing sidebar for personal workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
DonKoko committed May 10, 2024
1 parent 4bc5ae9 commit 6bbe926
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 4 additions & 3 deletions app/components/layout/sidebar/menu-items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const MenuItems = ({ fetcher }: { fetcher: FetcherWithComponents<any> }) => {
) : null}

{menuItemsTop.map((item) =>
item.to === "bookings" ? (
item.to === "bookings" || item.to === "calendar" ? (
<li key={item.label}>
<ControlledActionButton
canUseFeature={canUseBookings}
Expand All @@ -71,8 +71,9 @@ const MenuItems = ({ fetcher }: { fetcher: FetcherWithComponents<any> }) => {
</span>
</span>
),
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={{
Expand Down
6 changes: 2 additions & 4 deletions app/components/shared/controlled-action-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@ const HoverMessage = ({
{buttonContent.message}
{!skipCta ? (
<span>
Please consider{" "}
<Button to="/settings/subscription" variant={"link"}>
{buttonContent.ctaText}
</Button>
{" "}
Please switch to your team workspace to use this feature
</span>
) : null}
.
Expand Down

0 comments on commit 6bbe926

Please sign in to comment.