-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added transaction option in group options & fix otp keyboard issue
- Loading branch information
1 parent
1fa500a
commit 3847256
Showing
13 changed files
with
123 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
39 changes: 39 additions & 0 deletions
39
Splito/UI/Home/Groups/Group/Group Options/Transactions/GroupTransactionsRouteView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// GroupTransactionsRouteView.swift | ||
// Splito | ||
// | ||
// Created by Nirali Sonani on 20/06/24. | ||
// | ||
|
||
import BaseStyle | ||
import Data | ||
import SwiftUI | ||
|
||
struct GroupTransactionsRouteView: View { | ||
|
||
@StateObject var appRoute: Router<AppRoute> | ||
|
||
var dismissPaymentFlow: () -> Void | ||
|
||
init(appRoute: Router<AppRoute>, dismissPaymentFlow: @escaping () -> Void) { | ||
self._appRoute = StateObject(wrappedValue: appRoute) | ||
self.dismissPaymentFlow = dismissPaymentFlow | ||
} | ||
|
||
var body: some View { | ||
RouterView(router: appRoute) { route in | ||
switch route { | ||
case .TransactionListView(let groupId): | ||
GroupTransactionListView(viewModel: GroupTransactionListViewModel(router: appRoute, groupId: groupId)) | ||
case .TransactionDetailView(let transactionId, let groupId): | ||
GroupTransactionDetailView(viewModel: GroupTransactionDetailViewModel(router: appRoute, transactionId: transactionId, groupId: groupId)) | ||
case .GroupPaymentView(let transactionId, let groupId, let payerId, let receiverId, let amount): | ||
GroupPaymentView(viewModel: GroupPaymentViewModel(router: appRoute, transactionId: transactionId, groupId: groupId, | ||
payerId: payerId, receiverId: receiverId, | ||
amount: amount, dismissPaymentFlow: dismissPaymentFlow)) | ||
default: | ||
EmptyRouteView(routeName: self) | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters