-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
real-time sync updated & alert added (#47)
* Real time sync added to user model * account: message alert added
- Loading branch information
1 parent
3443fe8
commit 669ac6b
Showing
3 changed files
with
43 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Snackbar } from "@material-ui/core"; | ||
import { Alert } from "@material-ui/lab"; | ||
import React from "react"; | ||
|
||
function MessageAlert({ open, handleClose }) { | ||
return ( | ||
<div> | ||
<div> | ||
<Snackbar | ||
open={open} | ||
autoHideDuration={2000} | ||
onClose={handleClose} | ||
anchorOrigin={{ vertical: "top", horizontal: "right" }} | ||
> | ||
<Alert onClose={handleClose} severity="success"> | ||
Successfully updated | ||
</Alert> | ||
</Snackbar> | ||
</div> | ||
; | ||
</div> | ||
); | ||
} | ||
|
||
export default MessageAlert; |
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