Merged in feat/SW-1261 (pull request #1263)

feat: only show member price when logged in

* feat: only show member price when logged in


Approved-by: Michael Zetterberg
This commit is contained in:
Simon.Emanuelsson
2025-02-07 08:51:50 +00:00
parent c0f5c0278b
commit c204532acc
27 changed files with 479 additions and 238 deletions

View File

@@ -33,8 +33,9 @@ import type { Lang } from "@/constants/languages"
function HotelCard({
hotel,
type = HotelCardListingTypeEnum.PageListing,
isUserLoggedIn,
state = "default",
type = HotelCardListingTypeEnum.PageListing,
}: HotelCardProps) {
const params = useParams()
const lang = params.lang as Lang
@@ -160,7 +161,7 @@ function HotelCard({
<NoPriceAvailableCard />
) : (
<>
{price.public && (
{!isUserLoggedIn && price.public && (
<HotelPriceCard productTypePrices={price.public} />
)}
{price.member && (