()
| 436 | } |
| 437 | |
| 438 | renderModalDialog() { |
| 439 | const attributes = omit(this.props, propsToOmit); |
| 440 | const dialogBaseClass = 'modal-dialog'; |
| 441 | |
| 442 | return ( |
| 443 | <div |
| 444 | {...attributes} |
| 445 | className={mapToCssModules( |
| 446 | classNames(dialogBaseClass, this.props.className, { |
| 447 | [`modal-${this.props.size}`]: this.props.size, |
| 448 | [`${dialogBaseClass}-centered`]: this.props.centered, |
| 449 | [`${dialogBaseClass}-scrollable`]: this.props.scrollable, |
| 450 | 'modal-fullscreen': this.props.fullscreen === true, |
| 451 | [`modal-fullscreen-${this.props.fullscreen}-down`]: |
| 452 | typeof this.props.fullscreen === 'string', |
| 453 | }), |
| 454 | this.props.cssModule, |
| 455 | )} |
| 456 | role="document" |
| 457 | ref={(c) => { |
| 458 | this._dialog = c; |
| 459 | }} |
| 460 | > |
| 461 | <div |
| 462 | className={mapToCssModules( |
| 463 | classNames('modal-content', this.props.contentClassName), |
| 464 | this.props.cssModule, |
| 465 | )} |
| 466 | > |
| 467 | {this.props.children} |
| 468 | </div> |
| 469 | </div> |
| 470 | ); |
| 471 | } |
| 472 | |
| 473 | render() { |
| 474 | const { unmountOnClose } = this.props; |
nothing calls this directly
no test coverage detected
searching dependent graphs…