content: import React, { Component } from 'react';
  import Collapse from 'react-collapse';
  
  
  export default class SchoolStatus extends Component {
    constructor(props) {
      super(props);
      this.state = { schoolStatusOpened: false };
      this.handleSchoolStatusOpened = this.handleSchoolStatusOpened.bind(this);
    }
    handleSchoolStatusOpened() {
      this.setState({ schoolStatusOpened: !this.state.schoolStatusOpened });
    }
    renderCollegeStatus(status, schoolStatus, dispatchCPStatusArray) {
      return status.map((currentEl, index) => (
        <div
          className={'pill ' + (schoolStatus.indexOf(currentEl.type) > -1 ? 'selected' : '')}
          onClick={() => dispatchCPStatusArray(currentEl.type)}
          key={index}
        >
        {currentEl.label}
        </div>
      ));
    }
  
    render() {
      const {status, schoolStatus, dispatchCPStatusArray} = this.props;
      return (
        <div>
          <div className="flexbox">
            <h4
              onClick={this.handleSchoolStatusOpened}
            >
            SCHOOL STATUS
            {(schoolStatus.length > 0) && (
              <span className="flex pull-right">
                <i className="fa fa-check-circle fa-lg"></i>
              </span>
            )
            }
            {(schoolStatus.length <= 0) && (
              <span className="flex pull-right">
                <i className="fa fa-circle-o fa-lg"></i>
              </span>
            )
            }
            </h4>
            <Collapse isOpened={this.state.schoolStatusOpened}>
              <p className="caption">
                <span className="caption-paragraph">
                  An Hispanic-serving institution, or HSI, is an institution participating in a federal program designed to assist colleges or universities in the United States that attempt to assist first generation, majority low income Hispanic students.") HBCU definition - A college or university that was originally founded prior to 1964 to educate students of African-American descent. Tribal College or University is an institution that meets the definition defined in Section 2 of the Tribally Controlled College or University Act of 1978 (25 U.S.C. 1801)
                </span>
              </p>
            </Collapse>
          </div>
          <div className="flex-container left">
            {this.renderCollegeStatus(status, schoolStatus, dispatchCPStatusArray)}
          </div>
        </div>
      );
    }
  }
  