{"size": 580, "ext": "js", "max_stars_repo_path": "src/reducers/GetAllLikes.js", "max_stars_repo_name": "voduchau/movieApp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/reducers/GetAllLikes.js", "max_issues_repo_name": "voduchau/movieApp", "max_issues_repo_issues_event_min_datetime": "2020-07-21T00:25:23.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-13T15:17:02.000Z", "max_forks_repo_path": "src/reducers/GetAllLikes.js", "max_forks_repo_name": "voduchau/movieApp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 30.5263157895, "max_line_length": 65, "alphanum_fraction": 0.4327586207}
const initialState = []
export default GetAllLikes = (state = initialState, action) => {
    switch (action.type) {
        case "LOAD_LIKES":
            const temp = [];
            if(action.payload){
                for(const key in action.payload){
                    temp.push({
                        likeID: key,
                        commentID: action.payload[key].commentID,
                        userID: action.payload[key].userID,
                    })
                }
            }
            return temp;
        default: 
            return state;
    }
}