Skip to content

Commit 020078a

Browse files
committed
Simplify state
1 parent b70396c commit 020078a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

WooCommerce/src/main/kotlin/com/woocommerce/android/ui/woopos/orders/WooPosOrdersState.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,17 @@ sealed class WooPosOrdersState {
2727
@Immutable
2828
data class Error(
2929
val message: String,
30-
val pullToRefreshState: WooPosPullToRefreshState = WooPosPullToRefreshState.Enabled,
30+
val pullToRefreshState: WooPosPullToRefreshState = WooPosPullToRefreshState.Disabled,
3131
) : WooPosOrdersState() {
32-
val items: List<OrderItemViewState> = emptyList()
33-
val paginationState: WooPosPaginationState = WooPosPaginationState.None
3432
}
3533

3634
@Immutable
3735
data object Loading : WooPosOrdersState() {
38-
val items: List<OrderItemViewState> = emptyList()
3936
val pullToRefreshState: WooPosPullToRefreshState = WooPosPullToRefreshState.Disabled
40-
val paginationState: WooPosPaginationState = WooPosPaginationState.None
4137
}
4238

4339
@Immutable
4440
data object Empty : WooPosOrdersState() {
45-
val items: List<OrderItemViewState> = emptyList()
4641
val pullToRefreshState: WooPosPullToRefreshState = WooPosPullToRefreshState.Enabled
47-
val paginationState: WooPosPaginationState = WooPosPaginationState.None
4842
}
4943
}

0 commit comments

Comments
 (0)