From cba3e1f39c59a69b56626f09bd93ab7f0b213919 Mon Sep 17 00:00:00 2001
From: Gurdarshan-Singh
Date: Fri, 23 Aug 2024 14:44:29 -0400
Subject: [PATCH 1/2] feature/894:Empty commit
---
src/App.jsx | 2 +-
yarn.lock | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/src/App.jsx b/src/App.jsx
index 562bc57..f779f3a 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -53,7 +53,7 @@ class App extends Component {
preNav: null,
preCat: null,
preTime: null,
- }; // = getUserInfo();
+ };
let DataToDisplay = new Data(this.props.appLanguage);
var app_language = this.props.appLanguage;
diff --git a/yarn.lock b/yarn.lock
index fdbdc01..fb0f81f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4307,6 +4307,13 @@ binary@~0.3.0:
buffers "~0.1.1"
chainsaw "~0.1.0"
+bindings@^1.5.0:
+ version "1.5.0"
+ resolved "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz"
+ integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==
+ dependencies:
+ file-uri-to-path "1.0.0"
+
bl@^4.0.3:
version "4.1.0"
resolved "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz"
@@ -8191,6 +8198,14 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
+fsevents@^1.2.7:
+ version "1.2.13"
+ resolved "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz"
+ integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==
+ dependencies:
+ bindings "^1.5.0"
+ nan "^2.12.1"
+
fstream@^1.0.12:
version "1.0.12"
resolved "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz"
@@ -11874,6 +11889,11 @@ mute-stream@0.0.7:
resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz"
integrity sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==
+nan@^2.12.1:
+ version "2.19.0"
+ resolved "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz"
+ integrity sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==
+
nanoid@^3.3.7:
version "3.3.7"
resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz"
From 4ebaa85d19e05309d1acb8afbf57900eedd80ee8 Mon Sep 17 00:00:00 2001
From: Gurdarshan-Singh
Date: Fri, 23 Aug 2024 22:03:25 -0400
Subject: [PATCH 2/2] Feature Completed
---
src/App.jsx | 5 +-
src/Feedback/feedback.js | 217 +++++++++++++++++++++++++++++++++++++++
2 files changed, 220 insertions(+), 2 deletions(-)
create mode 100644 src/Feedback/feedback.js
diff --git a/src/App.jsx b/src/App.jsx
index f779f3a..f191d70 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -30,6 +30,7 @@ import { englishForm, frenchForm } from "./constants.js";
import FeedbackDialogEn from "./components/feedback-components/FeedbackDialogEn.js";
import FeedbackDialogFr from "./components/feedback-components/FeedbackDialogFr";
import DialogBox from "./components/DialogBox.js";
+import Feedback from "./Feedback/feedback.js";
class App extends Component {
static propTypes = {
@@ -1355,7 +1356,7 @@ class App extends Component {
{this.state.lang.feedback}
-
+
-
+
{this.state.configurationIsOpen && (
{
+ const [open, setOpen] = useState(false);
+ const [formData, setFormData] = useState({
+ name: "",
+ email: "",
+ rating: 0,
+ });
+
+ const handleOpen = () => setOpen(true);
+ const handleClose = () => setOpen(false);
+
+ const handleChange = (e) => {
+ const { name, value } = e.target;
+ setFormData({ ...formData, [name]: value });
+ };
+
+ const handleRatingChange = (event, newValue) => {
+ setFormData({ ...formData, rating: newValue });
+ };
+
+ const handleSubmit = (e) => {
+ e.preventDefault();
+ console.log(formData);
+ handleClose();
+ };
+
+ return (
+
+
+
+
+
+
+
+
+
+ Help us improve!
+
+
+ How would you like to rate your experience with icanbewell.ca?
+
+
+ Poor
+
+ Excellent
+
+
+
+
+
+ );
+};
+
+export default Feedback;