Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxdesmarais committed Nov 21, 2023
1 parent 3dd128e commit c01d5c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ struct PayPalWebCreateOrderView: View {
@State private var selectedIntent: Intent = .authorize

var body: some View {
VStack {
VStack(spacing: 16) {
HStack {
Text("Create an Order")
.font(.system(size: 20))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import SwiftUI
import PaymentButtons

struct PayPalWebDemoView: View {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct PayPalWebTransactionView: View {

var body: some View {
VStack {
PayPalWebResultView(payPalWebViewModel: payPalWebViewModel, status: .approved)
PayPalWebStatusView(status: .approved, payPalViewModel: payPalWebViewModel)
ZStack {
Button("\(payPalWebViewModel.intent.rawValue.capitalized) Order") {
Task {
Expand All @@ -19,6 +19,7 @@ struct PayPalWebTransactionView: View {
}
.buttonStyle(RoundedBlueButtonStyle())
.padding()

if payPalWebViewModel.state == .loading {
CircularProgressView()
}
Expand Down

0 comments on commit c01d5c5

Please sign in to comment.