diff --git a/client/src/components/Modals/Modal.tsx b/client/src/components/Modals/Modal.tsx index b28367f..6fe838f 100644 --- a/client/src/components/Modals/Modal.tsx +++ b/client/src/components/Modals/Modal.tsx @@ -1,16 +1,15 @@ -import React, { FC, CSSProperties } from "react"; +import React, { FC } from "react"; +import Dialog from "@material-ui/core/Dialog"; interface IProps { handleClose: () => void; show: boolean; } + export const Modal: FC = ({ handleClose, show, children }) => { - const showHideStyle: CSSProperties = show - ? { display: "block", zIndex: 10 } - : { display: "none", zIndex: 10 }; return ( -
-
{children}
-
+ + {children} + ); };