{"size": 397, "ext": "js", "max_stars_repo_path": "web/src/core/redux/LoginForm/LoginFormReducer.js", "max_stars_repo_name": "xvicmanx/activities-app", "max_stars_repo_stars_event_min_datetime": "2020-12-11T02:56:10.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-14T21:36:50.000Z", "max_issues_repo_path": "web/src/core/redux/LoginForm/LoginFormReducer.js", "max_issues_repo_name": "xvicmanx/activities-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "web/src/core/redux/LoginForm/LoginFormReducer.js", "max_forks_repo_name": "xvicmanx/activities-app", "max_forks_repo_forks_event_min_datetime": "2020-12-14T19:36:20.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-14T19:36:20.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 18.0454545455, "max_line_length": 77, "alphanum_fraction": 0.5994962217}
import { HANDLE_CHANGE } from './LoginFormActionTypes';

export const INITIAL_STATE = {
  email: '',
  password: '',
};

const LoginFormReducer = (state = INITIAL_STATE, { type, payload } = {}) => {
  switch (type) {
    case HANDLE_CHANGE:
      return {
        ...state,
        [payload.name]: payload.value,
      };

    default:
      return state;
  }
};

export default LoginFormReducer;
