Skip to content

Commit

Permalink
Update some button styles and placeholder screen usages.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Jul 20, 2023
1 parent e7a7a8c commit 8d34a13
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ElementX/Sources/Application/AppCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,

showLoadingIndicator()

navigationRootCoordinator.setRootCoordinator(SplashScreenCoordinator())
navigationRootCoordinator.setRootCoordinator(PlaceholderScreenCoordinator())

stopSync()
userSessionFlowCoordinator?.stop()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,21 @@ struct FormButtonStyles_Previews: PreviewProvider {
}
.buttonStyle(FormButtonStyle())

Button { } label: {
Label("Block user", systemImage: "circle.slash")
}
.buttonStyle(FormButtonStyle(accessory: .progressView))
.disabled(true)

Button { } label: {
Label("Show something", systemImage: "rectangle.portrait")
}
.buttonStyle(FormButtonStyle(accessory: .navigationLink))

Button(role: .destructive) { } label: {
Label("Show destruction", systemImage: "rectangle.portrait")
Label("Destroy", systemImage: "trash")
}
.buttonStyle(FormButtonStyle(accessory: .navigationLink))
.buttonStyle(FormButtonStyle())

ShareLink(item: "test")
.buttonStyle(FormButtonStyle())
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/Sources/RoomFlowCoordinatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RoomFlowCoordinatorTests: XCTestCase {
let mediaProvider = MockMediaProvider()
let userSession = MockUserSession(clientProxy: clientProxy, mediaProvider: mediaProvider)

let navigationSplitCoordinator = NavigationSplitCoordinator(placeholderCoordinator: SplashScreenCoordinator())
let navigationSplitCoordinator = NavigationSplitCoordinator(placeholderCoordinator: PlaceholderScreenCoordinator())
navigationStackCoordinator = NavigationStackCoordinator()
navigationSplitCoordinator.setDetailCoordinator(navigationStackCoordinator)

Expand Down
2 changes: 1 addition & 1 deletion UnitTests/Sources/UserIndicatorControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class UserIndicatorControllerTests: XCTestCase {
private var indicatorController: UserIndicatorController!

override func setUp() {
indicatorController = UserIndicatorController(rootCoordinator: SplashScreenCoordinator())
indicatorController = UserIndicatorController(rootCoordinator: PlaceholderScreenCoordinator())
}

func testIndicatorQueueing() {
Expand Down

0 comments on commit 8d34a13

Please sign in to comment.