Merged in fix/sw-3622-tablet-voucher-container-empty (pull request #3197)

fix(SW-3622): Hide UI glitch while redemption is disabled for partner-sas

* Hide UI glitch while redemption is disabled for partner-sas


Approved-by: Matilda Haneling
This commit is contained in:
Anton Gunnarsson
2025-11-25 10:47:07 +00:00
parent 5477343373
commit bd21b92dbe

View File

@@ -41,7 +41,7 @@ export default function FormContent({
const { const {
formState: { errors, isDirty }, formState: { errors, isDirty },
} = useFormContext<BookingWidgetSchema>() } = useFormContext<BookingWidgetSchema>()
const { bookingCodeEnabled } = useBookingFlowConfig() const { bookingCodeEnabled, redemptionEnabled } = useBookingFlowConfig()
const lang = useLang() const lang = useLang()
const pathName = usePathname() const pathName = usePathname()
@@ -114,6 +114,10 @@ export default function FormContent({
styles.voucherRow, styles.voucherRow,
bookingCodeEnabled ? null : styles.bookingCodeDisabled bookingCodeEnabled ? null : styles.bookingCodeDisabled
)} )}
style={{
// TODO: Remove this when redemption is enabled for partner-sas
display: redemptionEnabled ? undefined : "none",
}}
> >
<Voucher /> <Voucher />
</div> </div>