Removed accidentally committed code
This commit is contained in:
parent
8c1cd33e6b
commit
9572ae0206
|
@ -18,29 +18,6 @@ struct ContentView: View {
|
|||
|
||||
@Inject private var presenter: BankingPresenterSwift
|
||||
|
||||
|
||||
// TODO: remove again
|
||||
private let enterTanState: EnterTanState
|
||||
|
||||
|
||||
init() {
|
||||
let customer = Customer(bankCode: "", customerId: "", password: "", finTsServerAddress: "")
|
||||
let selectedTanProcedure = TanProcedure(displayName: "chipTAN optisch", type: .chiptanflickercode, bankInternalProcedureCode: "chipTAN optisch")
|
||||
customer.supportedTanProcedures = [
|
||||
TanProcedure(displayName: "App TAN", type: .apptan, bankInternalProcedureCode: "App TAN"),
|
||||
selectedTanProcedure,
|
||||
TanProcedure(displayName: "SMS TAN", type: .smstan, bankInternalProcedureCode: "SMS TAN")
|
||||
]
|
||||
customer.selectedTanProcedure = selectedTanProcedure
|
||||
|
||||
customer.tanMedia = [
|
||||
TanMedium(displayName: "EC-Karte mit Nummer 12345678", status: .available),
|
||||
TanMedium(displayName: "Handy mit Nummer 0170 / 12345678", status: .available)
|
||||
]
|
||||
|
||||
self.enterTanState = EnterTanState(customer, TanChallenge(messageToShowToUser: "Gib die TAN ein du faules Stueck!\nAber jetzt manchen wir mal eine richtig, richtig lange Nachricht daraus.\nMal schauen, ob mir so viel Quatsch ueberhaupt einfaellt (aber anscheinend scheine ich sehr kreativ zu sein).", tanProcedure: selectedTanProcedure)) { result in }
|
||||
}
|
||||
|
||||
|
||||
var body: some View {
|
||||
// NavigationView {
|
||||
|
@ -65,32 +42,6 @@ struct ContentView: View {
|
|||
}
|
||||
.tag(0)
|
||||
|
||||
// actionSheet(isPresented: $showTransferMoneyOptionsActionSheet) {
|
||||
// ActionSheet(
|
||||
// title: Text("Action"),
|
||||
// message: Text("Available actions"),
|
||||
// buttons: [
|
||||
// .default(Text("Show transfer money dialog")) { self.selectedTransferMoneyOption = 1 },
|
||||
// .destructive(Text("Delete"))
|
||||
// ]
|
||||
// )
|
||||
// }
|
||||
|
||||
// TransferMoneyDialog()
|
||||
// .tabItem {
|
||||
// NavigationLink(destination: TransferMoneyDialog(), tag: 1, selection: $selectedTransferMoneyOption) {
|
||||
// EmptyView()
|
||||
// }
|
||||
// VStack {
|
||||
// Image("second")
|
||||
// Text("Second")
|
||||
// }
|
||||
// .onTapGesture {
|
||||
// NSLog("Tapped on second item") // TODO: remove again
|
||||
// self.showTransferMoneyOptionsActionSheet = true
|
||||
// }
|
||||
// }
|
||||
// NavigationView {
|
||||
VStack {
|
||||
NavigationLink(destination: TransferMoneyDialog()) {
|
||||
Text("Show transfer money dialog")
|
||||
|
@ -121,16 +72,6 @@ struct ContentView: View {
|
|||
}
|
||||
.tag(1)
|
||||
|
||||
EnterTanDialog(self.enterTanState)
|
||||
.tabItem {
|
||||
VStack {
|
||||
Text("EnterTanDialog")
|
||||
}
|
||||
}
|
||||
.tag(3)
|
||||
.navigationBarHidden(false)
|
||||
.navigationBarTitle("Enter TAN")
|
||||
|
||||
}
|
||||
.navigationBarHidden(false)
|
||||
.navigationBarTitle(navigationBarTitle)
|
||||
|
|
Loading…
Reference in New Issue