From e3fdf40a24d30d1e5dd2182b9afe57cd4025e163 Mon Sep 17 00:00:00 2001 From: nasir ali Date: Fri, 13 Oct 2023 10:57:49 +0100 Subject: [PATCH] corrected the error with a group work and coding --- client/src/components/PopUpAlert.js | 32 ++++++++++++------------ client/src/pages/Home.js | 5 ++++ client/src/pages/SubmitSuggestion.js | 7 ++++-- client/src/pages/SuggestionSentence.js | 34 ++++++++++++++------------ 4 files changed, 44 insertions(+), 34 deletions(-) diff --git a/client/src/components/PopUpAlert.js b/client/src/components/PopUpAlert.js index 1429a01..ed45cdd 100644 --- a/client/src/components/PopUpAlert.js +++ b/client/src/components/PopUpAlert.js @@ -5,32 +5,34 @@ import Snackbar from "@mui/material/Snackbar"; import MuiAlert from "@mui/material/Alert"; const Alert = React.forwardRef(function Alert(props, ref) { - return ; + return ; }); export default function PopUpAlert(props) { - const [open, setOpen] = React.useState(false); + const [open, setOpen] = React.useState(false); - const handleClick = () => { - setOpen(true); - }; + const handleClick = () => { + setOpen(true); + }; - const handleClose = (event, reason) => { - if (reason === "clickaway") { - return; - } + const handleClose = (event, reason) => { + if (reason === "clickaway") { + return; + } - setOpen(false); - }; + setOpen(false); + }; - return ( + return (