(
state = {
rangeSelections: [],
skill: ['ps', 'ts']
},
action
)
| 1 | import { createStore } from 'redux'; |
| 2 | const counter = ( |
| 3 | state = { |
| 4 | rangeSelections: [], |
| 5 | skill: ['ps', 'ts'] |
| 6 | }, |
| 7 | action |
| 8 | ) => { |
| 9 | switch (action.type) { |
| 10 | case 'SET_RANGE_SELECTIONS': |
| 11 | return { |
| 12 | ...state, |
| 13 | rangeSelections: action.rangeSelections |
| 14 | }; |
| 15 | case 'SET_FD_AND_ROUTE_ID': |
| 16 | return { |
| 17 | ...state, |
| 18 | fd: action.fd, |
| 19 | routeId: action.routeId |
| 20 | }; |
| 21 | default: |
| 22 | return state; |
| 23 | } |
| 24 | }; |
| 25 | let store = createStore(counter); |
| 26 | export default store; |
nothing calls this directly
no outgoing calls
no test coverage detected