feat(SW-750): remove button
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
import { about } from "@/constants/routes/hotelPageParams"
|
import { about } from "@/constants/routes/hotelPageParams"
|
||||||
|
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
import Divider from "@/components/TempDesignSystem/Divider"
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
|
||||||
import SidePeek from "@/components/TempDesignSystem/SidePeek"
|
import SidePeek from "@/components/TempDesignSystem/SidePeek"
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Preamble from "@/components/TempDesignSystem/Text/Preamble"
|
import Preamble from "@/components/TempDesignSystem/Text/Preamble"
|
||||||
@@ -22,7 +20,6 @@ export default async function AboutTheHotelSidePeek({
|
|||||||
socials,
|
socials,
|
||||||
ecoLabels,
|
ecoLabels,
|
||||||
descriptions,
|
descriptions,
|
||||||
buttonUrl,
|
|
||||||
}: AboutTheHotelSidePeekProps) {
|
}: AboutTheHotelSidePeekProps) {
|
||||||
const lang = getLang()
|
const lang = getLang()
|
||||||
const intl = await getIntl()
|
const intl = await getIntl()
|
||||||
@@ -43,13 +40,6 @@ export default async function AboutTheHotelSidePeek({
|
|||||||
<Divider color="baseSurfaceSutbleHover" />
|
<Divider color="baseSurfaceSutbleHover" />
|
||||||
<Preamble>{descriptions.short}</Preamble>
|
<Preamble>{descriptions.short}</Preamble>
|
||||||
<Body>{descriptions.medium}</Body>
|
<Body>{descriptions.medium}</Body>
|
||||||
{buttonUrl && (
|
|
||||||
<Button fullWidth theme="base" intent="secondary" asChild>
|
|
||||||
<Link href={buttonUrl} color="burgundy" weight="bold">
|
|
||||||
{intl.formatMessage({ id: "Read more about the hotel" })}
|
|
||||||
</Link>
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
</section>
|
</section>
|
||||||
</SidePeek>
|
</SidePeek>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -145,7 +145,6 @@ export default async function HotelPage() {
|
|||||||
socials={socials}
|
socials={socials}
|
||||||
ecoLabels={ecoLabels}
|
ecoLabels={ecoLabels}
|
||||||
descriptions={hotelDescription}
|
descriptions={hotelDescription}
|
||||||
buttonUrl="#"
|
|
||||||
/>
|
/>
|
||||||
<SidePeek
|
<SidePeek
|
||||||
contentKey={hotelPageParams.restaurantAndBar[lang]}
|
contentKey={hotelPageParams.restaurantAndBar[lang]}
|
||||||
|
|||||||
@@ -10,5 +10,4 @@ export type AboutTheHotelSidePeekProps = {
|
|||||||
socials: Hotel["socialMedia"]
|
socials: Hotel["socialMedia"]
|
||||||
ecoLabels: Hotel["hotelFacts"]["ecoLabels"]
|
ecoLabels: Hotel["hotelFacts"]["ecoLabels"]
|
||||||
descriptions: Hotel["hotelContent"]["texts"]["descriptions"]
|
descriptions: Hotel["hotelContent"]["texts"]["descriptions"]
|
||||||
buttonUrl?: string
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,5 +6,5 @@ export enum GoogleMapsDirections {
|
|||||||
|
|
||||||
export type ContactInformationProps = Omit<
|
export type ContactInformationProps = Omit<
|
||||||
AboutTheHotelSidePeekProps,
|
AboutTheHotelSidePeekProps,
|
||||||
"descriptions" | "buttonUrl"
|
"descriptions"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user