renderEditLink(section, enrollmentStep) {
    let sectionId = `edit-${section.replace(/\s+/g, '_').toLowerCase()}-btn`;
    if (this.props.goto) {
      return (
        <Button variant="link" id={sectionId} className="edit-link p-0" onClick={() => this.props.goto(enrollmentStep)} aria-label={`Edit ${section}`}>
          Edit
        </Button>
      );
    } else {
      return (
        <div className="edit-link">
          <a
            href={`${window.BASE_PATH}/patients/${this.props.details.id}/edit?step=${enrollmentStep}${navQueryParam(this.props.workflow, false)}`}
            id={sectionId}
            aria-label={`Edit ${section}`}>
            Edit
          </a>
        </div>
      );
    }
  }
/**
   * Renders the edit link depending on if the user is coming from the monitoree details section or summary of the enrollment wizard.
   * @param {String} section - title of the monitoree details section
   * @param {Number} enrollmentStep - the number of the step for the section within the enrollment wizard
   */
Renders the edit link depending on if the user is coming from the monitoree details section or summary of the enrollment wizard.
@param {String} section - title of the monitoree details section
@param {Number} enrollmentStep - the number of the step for the section within the enrollment wizard
Renders the edit link depending on if the user is coming from the monitoree details section or summary of the enrollment wizard . @param { String } section - title of the monitoree details section @param { Number } enrollmentStep - the number of the step for the section within the enrollment wizard
renderEditLink(section, enrollmentStep) {
    let sectionId = `edit-${section.replace(/\s+/g, '_').toLowerCase()}-btn`;
    if (this.props.goto) {
      return (
        <Button variant="link" id={sectionId} className="edit-link p-0" onClick={() => this.props.goto(enrollmentStep)} aria-label={`Edit ${section}`}>
          Edit
        </Button>
      );
    } else {
      return (
        <div className="edit-link">
          <a
            href={`${window.BASE_PATH}/patients/${this.props.details.id}/edit?step=${enrollmentStep}${navQueryParam(this.props.workflow, false)}`}
            id={sectionId}
            aria-label={`Edit ${section}`}>
            Edit
          </a>
        </div>
      );
    }
  }
renderEditLink ( section , enrollmentStep ) { let sectionId = ` ${ section . replace ( / \s+ / g , '_' ) . toLowerCase ( ) } ` ; if ( this . props . goto ) { return ( < Button variant = "link" id = { sectionId } className = "edit-link p-0" onClick = { ( ) => this . props . goto ( enrollmentStep ) } aria-label = { ` ${ section } ` } > 
          Edit
         < / Button > ) ; } else { return ( < div className = "edit-link" > < a href = { ` ${ window . BASE_PATH } ${ this . props . details . id } ${ enrollmentStep } ${ navQueryParam ( this . props . workflow , false ) } ` } id = { sectionId } aria-label = { ` ${ section } ` } > 
            Edit
           < / a > < / div > ) ; } }
Renders the edit link depending on if the user is coming from the monitoree details section or summary of the enrollment wizard.
Renders the edit link depending on if the user is coming from the monitoree details section or summary of the enrollment wizard .