12 lines
439 B
Dart
12 lines
439 B
Dart
import 'package:satu/core/redux/actions/sell_actions.dart';
|
|
import 'package:satu/core/redux/actions/user_actions.dart';
|
|
import 'package:satu/core/redux/state/sell_state.dart';
|
|
import 'package:satu/core/redux/state/user_state.dart';
|
|
|
|
sellReducer(SellState prevState, SetSellStateAction action) {
|
|
final payload = action.sellState;
|
|
return prevState.copyWith(
|
|
items: payload.items,
|
|
transactionState: payload.transactionState
|
|
);
|
|
} |