@@ -5,9 +5,19 @@ import {
5
5
isGotOneInspectionAction ,
6
6
isResetStateAction ,
7
7
isUpdatedManyTasksAction ,
8
+ isCreatedOnePricingAction ,
9
+ isDeletedOnePricingAction ,
10
+ isUpdatedOnePricingAction ,
11
+ isUpdatedOneInspectionAdditionalDataAction ,
12
+ isUpdatedVehicleAction ,
8
13
MonkAction ,
9
14
resetState ,
10
15
updatedManyTasks ,
16
+ createdOnePricing ,
17
+ deletedOnePricing ,
18
+ updatedOnePricing ,
19
+ updatedOneInspectionAdditionalData ,
20
+ updatedVehicle ,
11
21
} from './actions' ;
12
22
import { MonkState } from './state' ;
13
23
@@ -21,11 +31,26 @@ export function monkReducer(state: MonkState, action: MonkAction): MonkState {
21
31
if ( isGotOneInspectionAction ( action ) ) {
22
32
return gotOneInspection ( state , action ) ;
23
33
}
34
+ if ( isUpdatedOneInspectionAdditionalDataAction ( action ) ) {
35
+ return updatedOneInspectionAdditionalData ( state , action ) ;
36
+ }
24
37
if ( isCreatedOneImageAction ( action ) ) {
25
38
return createdOneImage ( state , action ) ;
26
39
}
27
40
if ( isUpdatedManyTasksAction ( action ) ) {
28
41
return updatedManyTasks ( state , action ) ;
29
42
}
43
+ if ( isCreatedOnePricingAction ( action ) ) {
44
+ return createdOnePricing ( state , action ) ;
45
+ }
46
+ if ( isDeletedOnePricingAction ( action ) ) {
47
+ return deletedOnePricing ( state , action ) ;
48
+ }
49
+ if ( isUpdatedOnePricingAction ( action ) ) {
50
+ return updatedOnePricing ( state , action ) ;
51
+ }
52
+ if ( isUpdatedVehicleAction ( action ) ) {
53
+ return updatedVehicle ( state , action ) ;
54
+ }
30
55
return state ;
31
56
}
0 commit comments