frontend/src/components/app/Prompt.js
/**
   * @method render
   * @summary Main render function
   */
@method render
@summary Main render function
@method render @summary Main render function
render() {
    const { onCancelClick, title, buttons } = this.props;
    const { cancel, submit } = buttons;
    return (
      <div className="screen-freeze screen-prompt-freeze">
        <div className="panel panel-modal-primary panel-prompt prompt-shadow">
          <div className="panel-groups-header panel-modal-header panel-prompt-header">
            <span className="panel-prompt-header-title panel-modal-header-title">
              {title}
            </span>
            <i className="meta-icon-close-1" onClick={onCancelClick} />
          </div>
          <div className="panel-modal-content panel-prompt-content">
            <p>{this.props.text}</p>
          </div>
          <div className="panel-groups-header panel-modal-header panel-prompt-header panel-prompt-footer">
            <div className="prompt-button-wrapper">
              {cancel ? this.renderCancelButton() : ''}
              {submit ? this.renderSubmitButton() : ''}
            </div>
          </div>
        </div>
        <ModalContextShortcuts
          done={this.submitClick}
          cancel={this.props.onCancelClick}
        />
      </div>
    );
  }
render ( ) { const { onCancelClick , title , buttons } = this . props ; const { cancel , submit } = buttons ; return ( < div className = "screen-freeze screen-prompt-freeze" > < div className = "panel panel-modal-primary panel-prompt prompt-shadow" > < div className = "panel-groups-header panel-modal-header panel-prompt-header" > < span className = "panel-prompt-header-title panel-modal-header-title" > { title } < / span > < i className = "meta-icon-close-1" onClick = { onCancelClick } / > < / div > < div className = "panel-modal-content panel-prompt-content" > < p > { this . props . text } < / p > < / div > < div className = "panel-groups-header panel-modal-header panel-prompt-header panel-prompt-footer" > < div className = "prompt-button-wrapper" > { cancel ? this . renderCancelButton ( ) : '' } { submit ? this . renderSubmitButton ( ) : '' } < / div > < / div > < / div > < ModalContextShortcuts done = { this . submitClick } cancel = { this . props . onCancelClick } / > < / div > ) ; }
@method render
 @summary Main render function
@method render @summary Main render function