Added type to modal_root base

This commit is contained in:
mgabdev 2019-07-22 23:01:12 -04:00
parent b40199f878
commit 8aeeaa7244
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ export default class ModalRoot extends React.PureComponent {
const visible = !!type; const visible = !!type;
return ( return (
<Base onClose={this.onClickClose}> <Base onClose={this.onClickClose} type={type}>
{visible && ( {visible && (
<BundleContainer fetchComponent={MODAL_COMPONENTS[type]} loading={this.renderLoading(type)} error={this.renderError} renderDelay={200}> <BundleContainer fetchComponent={MODAL_COMPONENTS[type]} loading={this.renderLoading(type)} error={this.renderError} renderDelay={200}>
{(SpecificComponent) => <SpecificComponent {...props} onClose={this.onClickClose} />} {(SpecificComponent) => <SpecificComponent {...props} onClose={this.onClickClose} />}