Merged in feat/SW-1889 (pull request #1670)

Feat/SW-1889

* fix: remove download invoice from confirmation page

* feat: remove EnterDetails Accordions


Approved-by: Simon.Emanuelsson
This commit is contained in:
Arvid Norlin
2025-03-31 13:14:11 +00:00
parent 93aafe5525
commit 5cff2e5f36
22 changed files with 205 additions and 513 deletions

View File

@@ -67,13 +67,13 @@ export default function PaymentClient({
const [showPaymentAlert, setShowPaymentAlert] = useState(false)
const { booking, canProceedToPayment, rooms, totalPrice } =
useEnterDetailsStore((state) => ({
booking: state.booking,
canProceedToPayment: state.canProceedToPayment,
rooms: state.rooms,
totalPrice: state.totalPrice,
}))
const { booking, rooms, totalPrice } = useEnterDetailsStore((state) => ({
booking: state.booking,
rooms: state.rooms,
totalPrice: state.totalPrice,
}))
const allRoomsComplete = rooms.every((r) => r.isComplete)
const bookingMustBeGuaranteed = rooms.some(({ room }, idx) => {
if (idx === 0 && isUserLoggedIn && room.memberMustBeGuaranteed) {
@@ -390,7 +390,7 @@ export default function PaymentClient({
return (
<section
className={`${styles.paymentSection} ${canProceedToPayment ? "" : styles.disabled}`}
className={`${styles.paymentSection} ${allRoomsComplete ? "" : styles.disabled}`}
>
<header>
<Title level="h2" as="h4">