Skip to content

Commit

Permalink
♻️ (LekaApp): Rename isCompanyConnected to isUserLoggedOut
Browse files Browse the repository at this point in the history
  • Loading branch information
macteuts committed Feb 9, 2024
1 parent 38e6242 commit d66ed9c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Apps/LekaApp/Sources/MainApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct LekaApp: App {
.onAppear {
self.styleManager.setDefaultColorScheme(self.colorScheme)
}
.fullScreenCover(isPresented: self.$authManagerViewModel.isWelcomeViewPresented) {
.fullScreenCover(isPresented: self.$authManagerViewModel.isUserLoggedOut) {
WelcomeView()
}
.tint(self.styleManager.accentColor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extension AccountCreationProcess {
if !self.rootOwnerViewModel.mockCaregiversSet.isEmpty {
self.rootOwnerViewModel.currentCaregiver = self.rootOwnerViewModel.mockCaregiversSet.last
}
self.authManagerViewModel.isWelcomeViewPresented.toggle()
self.authManagerViewModel.isUserLoggedOut.toggle()
}
.buttonStyle(.bordered)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct NoAccountConnectedLabel: View {
.multilineTextAlignment(.center)

Button(String(l10n.NoAccountConnectedLabel.buttonLabel.characters)) {
self.authManagerViewModel.isWelcomeViewPresented = true
self.authManagerViewModel.isUserLoggedOut = true
}
.buttonStyle(.bordered)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct CaregiverAvatarCell: View {
self.rootOwnerViewModel.currentCaregiver = self.caregiver
self.styleManager.colorScheme = self.caregiver.preferredColorScheme
self.styleManager.accentColor = self.caregiver.preferredAccentColor
self.authManagerViewModel.isWelcomeViewPresented = false
self.authManagerViewModel.isUserLoggedOut = false
self.rootOwnerViewModel.isCaregiverPickerViewPresented = false
} label: {
VStack(spacing: 10) {
Expand Down
2 changes: 1 addition & 1 deletion Apps/LekaApp/Sources/_NEWCodeBase/Views/WelcomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct WelcomeView: View {
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
Button(String(l10n.WelcomeView.skipStepButton.characters)) {
self.authManagerViewModel.isWelcomeViewPresented.toggle()
self.authManagerViewModel.isUserLoggedOut.toggle()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class AuthManagerViewModel: ObservableObject {
@Published public var showactionRequestAlert = false
@Published public var notificationMessage: String = ""
@Published public var showNotificationAlert = false
@Published public var isWelcomeViewPresented = false
@Published public var isUserLoggedOut = false

// MARK: Private

Expand Down Expand Up @@ -93,6 +93,6 @@ public class AuthManagerViewModel: ObservableObject {
self.showErrorAlert = false
self.notificationMessage = ""
self.showNotificationAlert = false
self.isWelcomeViewPresented = true
self.isUserLoggedOut = true
}
}

0 comments on commit d66ed9c

Please sign in to comment.