Skip to content

Commit

Permalink
refactor: address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedbashir committed Dec 18, 2023
1 parent 9289ff2 commit 89d5559
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SignInViewModel: ObservableObject {
@Published private(set) var isShowProgress = false
@Published private(set) var showError: Bool = false
@Published private(set) var showAlert: Bool = false
public var sourceScreen: LogistrationSourceScreen
let sourceScreen: LogistrationSourceScreen

var errorMessage: String? {
didSet {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SignUpViewModel: ObservableObject {
@Published var scrollTo: Int?
@Published var showError: Bool = false
@Published var thirdPartyAuthSuccess: Bool = false
public var sourceScreen: LogistrationSourceScreen
let sourceScreen: LogistrationSourceScreen

var errorMessage: String? {
didSet {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import Foundation
import Core
import SwiftUI
import Swinject

public enum CourseState {
case enrollOpen
Expand Down
2 changes: 0 additions & 2 deletions Discovery/Discovery/Presentation/DiscoveryViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import Combine
import Core
import SwiftUI
import Swinject
import Authorization

public class DiscoveryViewModel: ObservableObject {

Expand Down
6 changes: 4 additions & 2 deletions OpenEdX/RouteController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ class RouteController: UIViewController {
let controller = UIHostingController(
rootView: SignInView(
viewModel:
diContainer.resolve(SignInViewModel.self,
argument: LogistrationSourceScreen.default)!
diContainer.resolve(
SignInViewModel.self,
argument: LogistrationSourceScreen.default
)!
)
)
navigation.viewControllers = [controller]
Expand Down

0 comments on commit 89d5559

Please sign in to comment.