fix(BOOK-711): Added isFloating prop to decide when the booking widget should have a border radius
Approved-by: Bianca Widstam
This commit is contained in:
@@ -20,9 +20,11 @@ import type { BookingWidgetSchema } from "../Client"
|
||||
|
||||
type BookingWidgetToggleButtonProps = {
|
||||
openMobileSearch: () => void
|
||||
isFloating: boolean
|
||||
}
|
||||
export default function MobileToggleButton({
|
||||
openMobileSearch,
|
||||
isFloating,
|
||||
}: BookingWidgetToggleButtonProps) {
|
||||
const intl = useIntl()
|
||||
const lang = useLang()
|
||||
@@ -99,7 +101,8 @@ export default function MobileToggleButton({
|
||||
<Button
|
||||
className={cx(
|
||||
styles.mobileToggleButton,
|
||||
locationAndDateIsSet ? styles.complete : styles.partial
|
||||
locationAndDateIsSet ? styles.complete : styles.partial,
|
||||
{ [styles.floating]: isFloating }
|
||||
)}
|
||||
onPress={openMobileSearch}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user