fix(BOOK-663): Added scroll false to info card buttons on hotel pages
Approved-by: Bianca Widstam
This commit is contained in:
@@ -67,6 +67,7 @@ export async function Facilities({
|
|||||||
heading={facility.heading}
|
heading={facility.heading}
|
||||||
secondaryButton={{
|
secondaryButton={{
|
||||||
href: facility.sidepeekHref,
|
href: facility.sidepeekHref,
|
||||||
|
scrollOnClick: false,
|
||||||
text: intl.formatMessage({
|
text: intl.formatMessage({
|
||||||
id: "common.readMore",
|
id: "common.readMore",
|
||||||
defaultMessage: "Read more",
|
defaultMessage: "Read more",
|
||||||
|
|||||||
@@ -131,11 +131,13 @@ export function mapActivityCardsToInfoCards(
|
|||||||
}
|
}
|
||||||
mappedCard.primaryButton = {
|
mappedCard.primaryButton = {
|
||||||
href: `?s=${card.sidepeekSlug}`,
|
href: `?s=${card.sidepeekSlug}`,
|
||||||
|
scrollOnClick: false,
|
||||||
text: card.ctaText,
|
text: card.ctaText,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mappedCard.secondaryButton = {
|
mappedCard.secondaryButton = {
|
||||||
href: `?s=${card.sidepeekSlug}`,
|
href: `?s=${card.sidepeekSlug}`,
|
||||||
|
scrollOnClick: false,
|
||||||
text: card.ctaText,
|
text: card.ctaText,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user