File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Modules/Sources/WordPressUI/Views/Users Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ open class UserManagementActionDispatcher: ObservableObject {
2929package struct MockUserProvider : UserDataProvider {
3030
3131 enum Scenario {
32- case inifitLoading
32+ case infinitLoading
3333 case dummyData
3434 case error
3535 }
@@ -42,7 +42,7 @@ package struct MockUserProvider: UserDataProvider {
4242
4343 package func fetchUsers( cachedResults: CachedUserListCallback ? = nil ) async throws -> [ WordPressUI . DisplayUser ] {
4444 switch scenario {
45- case . inifitLoading :
45+ case . infinitLoading :
4646 try await Task . sleep ( for: . seconds( 1 * 24 * 60 * 60 ) )
4747 return [ ]
4848 case . dummyData:
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public struct UserListView: View {
7272
7373#Preview( " Loading " ) {
7474 NavigationView {
75- UserListView ( userProvider: MockUserProvider ( scenario: . inifitLoading ) , actionDispatcher: UserManagementActionDispatcher ( ) )
75+ UserListView ( userProvider: MockUserProvider ( scenario: . infinitLoading ) , actionDispatcher: UserManagementActionDispatcher ( ) )
7676 }
7777}
7878
You can’t perform that action at this time.
0 commit comments