diff --git a/components/HotelReservation/HotelCardDialog/index.tsx b/components/HotelReservation/HotelCardDialog/index.tsx index e6a5e2f02..7269ee7cc 100644 --- a/components/HotelReservation/HotelCardDialog/index.tsx +++ b/components/HotelReservation/HotelCardDialog/index.tsx @@ -103,12 +103,14 @@ export default function HotelCardDialog({ {intl.formatMessage({ id: "From" })} - - {publicPrice} {currency} - - /{intl.formatMessage({ id: "night" })} - - + {publicPrice && ( + + {publicPrice} {currency} + + /{intl.formatMessage({ id: "night" })} + + + )} {memberPrice && ( ) : null} - {showBackToTop && } + {showBackToTop && ( + + )} ) } diff --git a/components/HotelReservation/SelectHotel/SelectHotelMap/index.tsx b/components/HotelReservation/SelectHotel/SelectHotelMap/index.tsx index 7820d72b9..5459ab795 100644 --- a/components/HotelReservation/SelectHotel/SelectHotelMap/index.tsx +++ b/components/HotelReservation/SelectHotel/SelectHotelMap/index.tsx @@ -125,7 +125,9 @@ export default function SelectHotelMap({ activeHotelPin={activeHotelPin} setActiveHotelPin={setActiveHotelPin} /> - {showBackToTop && } + {showBackToTop && ( + + )} void }) { +export function BackToTopButton({ + onClick, + position, +}: { + onClick: () => void + position: "left" | "right" +}) { const intl = useIntl() return ( - + {intl.formatMessage({ id: "Back to top" })} diff --git a/components/TempDesignSystem/BackToTopButton/variants.ts b/components/TempDesignSystem/BackToTopButton/variants.ts new file mode 100644 index 000000000..91cee911e --- /dev/null +++ b/components/TempDesignSystem/BackToTopButton/variants.ts @@ -0,0 +1,15 @@ +import { cva } from "class-variance-authority" + +import styles from "./backToTopButton.module.css" + +export const backToTopButtonVariants = cva(styles.backToTopButton, { + variants: { + position: { + left: styles.left, + right: styles.right, + }, + }, + defaultVariants: { + position: "right", + }, +})