MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / renderModalDialog

Function renderModalDialog

src/Modal.js:438–471  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

omitFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…