@@ -123,6 +123,7 @@ struct DashSpendPayScreen: View {
123123 merchantIconUrl: viewModel. merchantIconUrl,
124124 originalPrice: confirmationOriginalPrice,
125125 discount: viewModel. savingsFraction,
126+ quantities: confirmationQuantities. isEmpty ? nil : confirmationQuantities,
126127 onConfirm: {
127128 showConfirmationDialog = false
128129 purchaseGiftCard ( )
@@ -247,25 +248,22 @@ private struct DashSpendPayConfirmationSheet: View {
247248 let merchantIconUrl : String
248249 let originalPrice : Decimal
249250 let discount : Decimal
251+ let quantities : [ Decimal : Int ] ?
250252 let onConfirm : ( ) -> Void
251253 let onCancel : ( ) -> Void
254+ @State private var contentHeight : CGFloat = 0
252255
253- private var amountText : String {
254- let formatter = NumberFormatter . fiatFormatter ( currencyCode: kDefaultCurrencyCode)
255- formatter. numberStyle = . decimal
256- return formatter. string ( from: NSDecimalNumber ( decimal: originalPrice) ) ?? " 0 "
257- }
258-
259256 @ViewBuilder
260257 var body : some View {
261258 let dialog = DashSpendConfirmationDialog (
262- amount: amountText,
263259 merchantName: merchantName,
264260 merchantIconUrl: merchantIconUrl,
265261 originalPrice: originalPrice,
266262 discount: discount,
263+ quantities: quantities,
267264 onConfirm: onConfirm,
268- onCancel: onCancel
265+ onCancel: onCancel,
266+ contentHeight: $contentHeight
269267 )
270268
271269 if #available( iOS 16 . 4 , * ) {
0 commit comments