updated choose name

This commit is contained in:
ari committed 2022-06-19 13:55:51 -04:00
1 parent 218972ed5d
commit 21dd880e37
8 files changed
+584 -468

No files matched your search

+7 -3
View File
@@ -2,18 +2,22 @@ import "./index.css";
import Paper from "@mui/material/Paper";
import MuiModal from "@mui/material/Modal";
import { FC, ReactNode } from "react";
import { Card, CardActions, CardContent } from "@mui/material";
export interface ModalStyleProps {
open: boolean;
}
export interface Props extends ModalStyleProps {
children: ReactNode;
actions?: ReactNode;
}
export const Modal: FC<Props> = ({ children, ...props }) => {
export const Modal: FC<Props> = ({ children, actions, open }) => {
return (
<MuiModal open={props.open}>
<MuiModal open={open}>
<div className="modal--root">
<Paper>{children}</Paper>
<Card variant="outlined">
<CardContent>{children}</CardContent>
</Card>
</div>
</MuiModal>
);