-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #810 from AI4Bharat/develop2
Develop2 to master
- Loading branch information
Showing
41 changed files
with
1,972 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from "react"; | ||
|
||
import { | ||
Button, | ||
Dialog, | ||
DialogActions, | ||
DialogContent, | ||
DialogContentText, | ||
} from "@mui/material"; | ||
|
||
const DeleteTaskDialog = ({ | ||
openDialog, | ||
handleClose, | ||
submit, | ||
}) => { | ||
return ( | ||
<Dialog | ||
open={openDialog} | ||
onClose={handleClose} | ||
aria-labelledby="alert-dialog-title" | ||
aria-describedby="alert-dialog-description" | ||
maxWidth={"md"} | ||
PaperProps={{ style: { borderRadius: "10px" } }} | ||
> | ||
<DialogContent> | ||
<DialogContentText id="alert-dialog-description"> | ||
Do you really want to delete this task? | ||
</DialogContentText> | ||
</DialogContent> | ||
<DialogActions sx={{ p: "0 20px 20px 20px" }}> | ||
<Button | ||
variant="text" | ||
onClick={handleClose} | ||
sx={{ lineHeight: "1", borderRadius: "8px" }} | ||
> | ||
Cancel | ||
</Button> | ||
<Button | ||
color="error" | ||
variant="contained" | ||
onClick={() => submit()} | ||
autoFocus | ||
sx={{ lineHeight: "1", borderRadius: "8px" }} | ||
> | ||
Delete | ||
</Button> | ||
</DialogActions> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default DeleteTaskDialog; |
Oops, something went wrong.