Merged in feat/refactor-enter-details-price-calculation (pull request #3183)

feat: Refactor enter details price calculation

* Refactor getTotalPrice and child functions

* Move price calculations from helper file to specific file


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-11-27 13:44:45 +00:00
parent 5ac7e5deac
commit 27b3f41bff
5 changed files with 755 additions and 865 deletions

View File

@@ -11,10 +11,9 @@ import { EnterDetailsStepEnum } from "./enterDetailsStep"
import {
checkRoomProgress,
extractGuestFromUser,
getRoomPrice,
getTotalPrice,
writeToSessionStorage,
} from "./helpers"
import { getRoomPrice, getTotalPrice } from "./priceCalculations"
import type { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
import type { Lang } from "@scandic-hotels/common/constants/language"