{"size": 621, "ext": "js", "max_stars_repo_path": "frontend_v1/src/containers/loops/memberships/changeMembershipStatus/validation/validator.js", "max_stars_repo_name": "eric-scott-owens/loopla", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "frontend_v1/src/containers/loops/memberships/changeMembershipStatus/validation/validator.js", "max_issues_repo_name": "eric-scott-owens/loopla", "max_issues_repo_issues_event_min_datetime": "2020-06-05T22:27:20.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-24T10:25:50.000Z", "max_forks_repo_path": "frontend_v1/src/containers/loops/memberships/changeMembershipStatus/validation/validator.js", "max_forks_repo_name": "eric-scott-owens/loopla", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 34.5, "max_line_length": 115, "alphanum_fraction": 0.7391304348}
import BaseValidator from '../../../../../validators/BaseValidator';
import ChangeStatusTypeFieldValidator from './ChangeStatusTypeFieldValidator';

export default class ChangeMembershipStatusFormValidator extends BaseValidator {
  constructor() {
    super();
    const locale = BaseValidator.getLocale();
    this.changeStatusTypeValidator = 
      new ChangeStatusTypeFieldValidator({
        fieldName: 'Change Status Type',
        locale
      })
  }

  startFieldValidators(formData, state) {
    this.addFieldValidationPromise('changeStatusType', this.changeStatusTypeValidator.validate(formData, state));  
  }
}