diff --git a/package-lock.json b/package-lock.json index 9bb988d..3270e11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17333,7 +17333,6 @@ "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 0bee69d..7e48787 100644 --- a/package.json +++ b/package.json @@ -47,9 +47,7 @@ "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 new file mode 100644 index 0000000..7081d83 --- /dev/null +++ b/src/Pages/Feedback.js @@ -0,0 +1,175 @@ +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

+
+
+ + +
+ +
+ + +
+ +
+ +