TF-250 Fixes

This commit is contained in:
Zbigniew Cisiński 2024-04-23 23:39:28 +02:00
parent 6c7e864fa8
commit 2f984c042d
4 changed files with 7 additions and 5 deletions

View File

@ -38,7 +38,7 @@ extension CategoryData {
if let section { if let section {
return section.title return section.title
} }
return T.Commons.service return T.Tokens.myTokens
}() }()
return Category(id: id, name: name, services: services.toServices()) return Category(id: id, name: name, services: services.toServices())
} }

View File

@ -37,6 +37,7 @@ struct IntroductionView: View {
}, label: { }, label: {
Text(T.Commons.continue) Text(T.Commons.continue)
}) })
.padding(.vertical, 12)
} }
} }
} }

View File

@ -104,13 +104,13 @@ struct SecurityView: View {
PINKeyboardView(presenter: .init(interactor: InteractorFactory.shared.pinInteractor(variant: .PINValidationWithClose), completion: { result in PINKeyboardView(presenter: .init(interactor: InteractorFactory.shared.pinInteractor(variant: .PINValidationWithClose), completion: { result in
switch result { switch result {
case .closed: path.removeLast() case .closed: path.removeLast()
case .verified: path.append(SecurityPath.setPIN(.selectLength)) case .verified: path.append(SecurityPath.changePIN(.selectLength))
default: break default: break
} }
})) }))
case .selectLength: case .selectLength:
PINTypeView(didSelect: { PINType in PINTypeView(didSelect: { PINType in
path.append(SecurityPath.setPIN(.enterPIN(PINType))) path.append(SecurityPath.changePIN(.enterPIN(PINType)))
}, showClose: true) { }, showClose: true) {
path.removeLast(2) path.removeLast(2)
} }
@ -118,7 +118,7 @@ struct SecurityView: View {
PINKeyboardView(presenter: .init(interactor: InteractorFactory.shared.pinInteractor(variant: .enterNewPIN(PINType)), completion: { result in PINKeyboardView(presenter: .init(interactor: InteractorFactory.shared.pinInteractor(variant: .enterNewPIN(PINType)), completion: { result in
switch result { switch result {
case .closed: path.removeLast(3) case .closed: path.removeLast(3)
case .entered(let appPIN): path.append(SecurityPath.setPIN(.verifyPIN(appPIN))) case .entered(let appPIN): path.append(SecurityPath.changePIN(.verifyPIN(appPIN)))
default: break default: break
} }
})) }))
@ -126,7 +126,7 @@ struct SecurityView: View {
PINKeyboardView(presenter: .init(interactor: InteractorFactory.shared.pinInteractor(variant: .verifyPIN(appPIN)), completion: { result in PINKeyboardView(presenter: .init(interactor: InteractorFactory.shared.pinInteractor(variant: .verifyPIN(appPIN)), completion: { result in
switch result { switch result {
case .closed: path.removeLast(4) case .closed: path.removeLast(4)
case .saved: path.append(SecurityPath.setPIN(.success)) case .saved: path.append(SecurityPath.changePIN(.success))
default: break default: break
} }
})) }))

View File

@ -34,6 +34,7 @@ struct SuccessView: View {
} }
.controlSize(.large) .controlSize(.large)
} }
.navigationBarBackButtonHidden()
} }
} }