update prettier

This commit is contained in:
Olivier Gagnon
2021-09-22 12:56:55 -04:00
parent c1945ab12e
commit 66a2adaeb4
31 changed files with 63988 additions and 2704 deletions
+21 -20
View File
@@ -5,24 +5,25 @@ import Button from "@mui/material/Button";
import Typography from "@mui/material/Typography";
interface IProps {
open: boolean;
onClose: () => void;
onConfirm: () => void;
confirmationText: string;
}
export function ConfirmationModal(props: IProps): React.ReactElement {
return (
<Modal open={props.open} onClose={props.onClose}>
<>
<Typography>
{props.confirmationText}
</Typography>
<Button onClick={() => {
open: boolean;
onClose: () => void;
onConfirm: () => void;
confirmationText: string;
}
export function ConfirmationModal(props: IProps): React.ReactElement {
return (
<Modal open={props.open} onClose={props.onClose}>
<>
<Typography>{props.confirmationText}</Typography>
<Button
onClick={() => {
props.onConfirm();
}}>Confirm</Button>
</>
</Modal>
);
}
}}
>
Confirm
</Button>
</>
</Modal>
);
}