add buttons
This commit is contained in:
parent
7a2fb798a3
commit
9f2a938b1e
@ -9,11 +9,44 @@ import SwiftUI
|
|||||||
|
|
||||||
struct AfterRegisterView: View {
|
struct AfterRegisterView: View {
|
||||||
@Binding var isPresented: Bool
|
@Binding var isPresented: Bool
|
||||||
|
@State private var isTwoFactorActive = false
|
||||||
|
@State private var isEmailSettingsActive = false
|
||||||
|
@State private var isAppLockActive = false
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationView {
|
NavigationView {
|
||||||
VStack {
|
VStack {
|
||||||
Text("After Register View")
|
Text("After Register View")
|
||||||
|
|
||||||
|
Section(header: Text(NSLocalizedString("Вход и защита аккаунта (заглушка)", comment: "Раздел настроек безопасности для аутентификации"))) {
|
||||||
|
NavigationLink(isActive: $isTwoFactorActive) {
|
||||||
|
TwoFactorAuthView()
|
||||||
|
} label: {
|
||||||
|
Label(NSLocalizedString("Двухфакторная аутентификация", comment: "Переход к настройкам двухфакторной аутентификации"), systemImage: "lock.shield")
|
||||||
|
}
|
||||||
|
|
||||||
|
NavigationLink(isActive: $isEmailSettingsActive) {
|
||||||
|
EmailSecuritySettingsView()
|
||||||
|
} label: {
|
||||||
|
Label(NSLocalizedString("Настройки email", comment: "Переход к настройкам безопасности email"), systemImage: "envelope")
|
||||||
|
}
|
||||||
|
|
||||||
|
NavigationLink(isActive: $isAppLockActive) {
|
||||||
|
AppLockSettingsView()
|
||||||
|
} label: {
|
||||||
|
Label(NSLocalizedString("Пароль на приложение", comment: "Переход к настройкам пароля на приложение"), systemImage: "lock.square")
|
||||||
|
}
|
||||||
|
|
||||||
|
NavigationLink(destination: EditProfileView()) {
|
||||||
|
Label(NSLocalizedString("Редактировать профиль", comment: ""), systemImage: "person.crop.circle")
|
||||||
|
}
|
||||||
|
|
||||||
|
NavigationLink(destination: EditPrivacyView()) {
|
||||||
|
Label(NSLocalizedString("Конфиденциальность", comment: ""), systemImage: "lock.fill")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
.navigationTitle("Welcome")
|
.navigationTitle("Welcome")
|
||||||
.toolbar {
|
.toolbar {
|
||||||
@ -31,4 +64,4 @@ struct AfterRegisterView_Previews: PreviewProvider {
|
|||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
AfterRegisterView(isPresented: .constant(true))
|
AfterRegisterView(isPresented: .constant(true))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user