From d2826f6b09abc3f86096df5447cfe2fe477b60be Mon Sep 17 00:00:00 2001 From: Om Maniya <105499099+maniyaom@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:28:39 +0530 Subject: [PATCH] Revert "Feedback theme changed according to the websites theme (#396)" This reverts commit 008c1244b850339b47645d413ee77e763bfe8dba. --- package-lock.json | 1 + package.json | 4 +- src/Pages/Feedback.js | 175 --------------------------------------- src/components/Navbar.js | 8 -- src/index.js | 2 - 5 files changed, 4 insertions(+), 186 deletions(-) delete mode 100644 src/Pages/Feedback.js diff --git a/package-lock.json b/package-lock.json index 12f8818..211dc52 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17501,6 +17501,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz", "integrity": "sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==", + "license": "MIT", "dependencies": { "@babel/core": "^7.16.0", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", diff --git a/package.json b/package.json index 15db250..0211ed8 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,9 @@ "devDependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "babel-preset-react-app": "^10.0.1", + "html5-qrcode": "^2.3.8", "tailwindcss": "^3.4.13" + } -} +} \ No newline at end of file diff --git a/src/Pages/Feedback.js b/src/Pages/Feedback.js deleted file mode 100644 index 7081d83..0000000 --- a/src/Pages/Feedback.js +++ /dev/null @@ -1,175 +0,0 @@ -import React, { useState } from 'react'; - -const FeedbackPage = () => { - const [formData, setFormData] = useState({ - name: '', - email: '', - feedback: '', - rating: 0, - }); - const [hoverRating, setHoverRating] = useState(0); - - const handleInputChange = (e) => { - const { name, value } = e.target; - setFormData({ ...formData, [name]: value }); - }; - - const handleRating = (rate) => { - setFormData({ ...formData, rating: rate }); - }; - - const handleSubmit = (e) => { - e.preventDefault(); - console.log('Feedback Submitted:', formData); - // Clear the form after submission - setFormData({ name: '', email: '', feedback: '', rating: 0 }); - setHoverRating(0); - }; - - return ( -
-

We Value Your Feedback

-
-
- - -
- -
- - -
- -
- -