Skip to content

Commit

Permalink
Merge pull request #365 from School-of-Company/361-admin-page-flow
Browse files Browse the repository at this point in the history
🔀 :: [#361] 어드민 페이지 이동 방식 리팩토링
  • Loading branch information
uuuunseo authored Jul 12, 2024
2 parents 46f8f44 + 787d638 commit d47e391
Show file tree
Hide file tree
Showing 37 changed files with 833 additions and 866 deletions.
2 changes: 2 additions & 0 deletions App/Sources/Application/BitgouelApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUI
@main
struct BitgouelApp: App {
@StateObject private var sceneState = SceneState(sceneFlow: .login)
@StateObject private var adminPageState = AdminPageState(adminPageFlow: .user)

init() {
registerProviderFactories()
Expand All @@ -13,6 +14,7 @@ struct BitgouelApp: App {
WindowGroup {
AppComponent().makeRootView()
.environmentObject(sceneState)
.environmentObject(adminPageState)
}
}
}
20 changes: 20 additions & 0 deletions App/Sources/Application/DI/AppComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,24 @@ public extension AppComponent {
var lectureApplicantListFactory: any LectureApplicantListFactory {
LectureApplicantListComponent(parent: self)
}

var adminRootFactory: any AdminRootFactory {
AdminRootComponent(parent: self)
}

var schoolListFactory: any SchoolListFactory {
SchoolListComponent(parent: self)
}

var companyListFactory: any CompanyListFactory {
CompanyListComponent(parent: self)
}

var universityListFactory: any UniversityListFactory {
UniversityListComponent(parent: self)
}

var governmentListFactory: any GovernmentListFactory {
GovernmentListComponent(parent: self)
}
}
Loading

0 comments on commit d47e391

Please sign in to comment.