-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement of upload profile img (#411)
* enhancement of upload profile img | #348 * miskenly added comment is removed
- Loading branch information
1 parent
27e39b7
commit df8a154
Showing
6 changed files
with
299 additions
and
178 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import Dialog from "@mui/material/Dialog"; | ||
import DialogActions from "@mui/material/DialogActions"; | ||
import DialogContent from "@mui/material/DialogContent"; | ||
import DialogContentText from "@mui/material/DialogContentText"; | ||
import DialogTitle from "@mui/material/DialogTitle"; | ||
|
||
export default function AlertDialog({ open , handleClose}) { | ||
return ( | ||
<Dialog | ||
open={open} | ||
aria-labelledby="alert-dialog-title" | ||
aria-describedby="alert-dialog-description" | ||
sx={{ textAlign: "center" , width : 500 , margin : 'auto' }} | ||
|
||
> | ||
<DialogTitle id="alert-dialog-title">You've successfully registered.</DialogTitle> | ||
<DialogContent> | ||
<DialogContentText id="alert-dialog-description"> | ||
Would you like to upload a profile picture to personalize your | ||
account? | ||
</DialogContentText> | ||
</DialogContent> | ||
<DialogActions sx={{ justifyContent: 'center' , paddingBottom : '20px' }}> | ||
<button | ||
className="px-4 py-4 text-white bg-gradient-to-b from-green-600 to-green-700 bg-opacity-35 rounded-[35px] drop-shadow-md shadow-buttonShadow text-[1rem] leading-[1rem] tracking-widest" | ||
onClick={() => handleClose(true)} | ||
> | ||
Skip for Now | ||
</button> | ||
<button | ||
className="px-4 py-4 text-white bg-gradient-to-b from-green-600 to-green-700 bg-opacity-35 rounded-[35px] drop-shadow-md shadow-buttonShadow text-[1rem] leading-[1rem] tracking-widest" | ||
onClick={() => handleClose(false)} | ||
> | ||
Upload Picture | ||
</button> | ||
</DialogActions> | ||
</Dialog> | ||
); | ||
} |
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
Oops, something went wrong.