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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user