You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
389 B

import { FETCH_WEATHER_ICONS } from "../constants";
const initialState = {
weathersIcons: [],
}
//@ts-ignore
export default IconsReducer = (state = initialState, action) => { ///action event receved
switch (action.type) {
case FETCH_WEATHER_ICONS:
// @ts-ignore
return {...state, weathersIcons: action.payload};
default:
return state;
}
}