feat(SW-750): remove button

This commit is contained in:
Fredrik Thorsson
2024-11-19 14:21:46 +01:00
parent acd1656885
commit cbc8081676
4 changed files with 1 additions and 13 deletions

View File

@@ -1,8 +1,6 @@
import { about } from "@/constants/routes/hotelPageParams"
import Button from "@/components/TempDesignSystem/Button"
import Divider from "@/components/TempDesignSystem/Divider"
import Link from "@/components/TempDesignSystem/Link"
import SidePeek from "@/components/TempDesignSystem/SidePeek"
import Body from "@/components/TempDesignSystem/Text/Body"
import Preamble from "@/components/TempDesignSystem/Text/Preamble"
@@ -22,7 +20,6 @@ export default async function AboutTheHotelSidePeek({
socials,
ecoLabels,
descriptions,
buttonUrl,
}: AboutTheHotelSidePeekProps) {
const lang = getLang()
const intl = await getIntl()
@@ -43,13 +40,6 @@ export default async function AboutTheHotelSidePeek({
<Divider color="baseSurfaceSutbleHover" />
<Preamble>{descriptions.short}</Preamble>
<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>
</SidePeek>
)

View File

@@ -145,7 +145,6 @@ export default async function HotelPage() {
socials={socials}
ecoLabels={ecoLabels}
descriptions={hotelDescription}
buttonUrl="#"
/>
<SidePeek
contentKey={hotelPageParams.restaurantAndBar[lang]}

View File

@@ -10,5 +10,4 @@ export type AboutTheHotelSidePeekProps = {
socials: Hotel["socialMedia"]
ecoLabels: Hotel["hotelFacts"]["ecoLabels"]
descriptions: Hotel["hotelContent"]["texts"]["descriptions"]
buttonUrl?: string
}

View File

@@ -6,5 +6,5 @@ export enum GoogleMapsDirections {
export type ContactInformationProps = Omit<
AboutTheHotelSidePeekProps,
"descriptions" | "buttonUrl"
"descriptions"
>