implemented the modal

This commit is contained in:
andres alcocer
2018-11-14 12:05:26 -05:00
parent 2467695d05
commit df86daef65
10 changed files with 128 additions and 16 deletions

View File

@@ -0,0 +1,15 @@
import React from 'react';
import Aux from '../../../hoc/Aux/Aux';
import Backdrop from '../Backdrop/Backdrop'
const modal = (props) => (
<Aux>
<Backdrop show={props.show} toggleBackdrop={props.modalClosed}/>
<div
className={"modal " + (props.show ? "show" : "hide")}>
{props.children}
</div>
</Aux>
);
export default modal;