{"size": 337, "ext": "js", "max_stars_repo_path": "src/actions/index.js", "max_stars_repo_name": "ziruihao/degree-checker", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/actions/index.js", "max_issues_repo_name": "ziruihao/degree-checker", "max_issues_repo_issues_event_min_datetime": "2021-03-09T03:56:18.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T10:53:47.000Z", "max_forks_repo_path": "src/actions/index.js", "max_forks_repo_name": "ziruihao/degree-checker-client", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 16.85, "max_line_length": 42, "alphanum_fraction": 0.7002967359}

export const ActionTypes = {
  ADD_COURSE: 'ADD_COURSE',
  REMOVE_COURSE: 'REMOVE_COURSE',
};

export function addCourse(courseName) {
  return {
    type: ActionTypes.ADD_COURSE,
    payload: courseName,
  };
}

export function removeCourse(courseName) {
  return {
    type: ActionTypes.REMOVE_COURSE,
    payload: courseName,
  };
}
