Skip to content

Commit fa27e53

Browse files
Merge pull request #811 from SandeepVashishtha/fix-deployment-error
Refactor feedback type select and add submitted state
2 parents 6421d27 + f543585 commit fa27e53

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Pages/Feedback/FeedbackPage.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ const FeedbackPage = () => {
393393
const [isSubmitting, setIsSubmitting] = useState(false);
394394
const [toast, setToast] = useState(null);
395395
const [isFocused, setIsFocused] = useState(false);
396+
const [submittedFeedback, setSubmittedFeedback] = useState([]);
396397
const formRef = useRef(null);
397398

398399
const feedbackTypes = [
@@ -657,11 +658,11 @@ const FeedbackPage = () => {
657658
placeholder="your@email.com"
658659
/>
659660

660-
<FloatingSelect
661+
<CustomFloatingSelect
661662
id="feedbackType"
662663
label="Feedback Type"
663664
value={formData.feedbackType}
664-
onChange={handleChange}
665+
onChange={handleSelectChange}
665666
options={feedbackTypes}
666667
error={errors.feedbackType}
667668
icon={FiMessageSquare}
@@ -711,7 +712,6 @@ const FeedbackPage = () => {
711712
)}
712713
</div>
713714

714-
<form ref={formRef} onSubmit={handleSubmit} noValidate>
715715
<FloatingInput
716716
id="name"
717717
label="Your Name"
@@ -838,7 +838,6 @@ const FeedbackPage = () => {
838838
</motion.button>
839839
</div>
840840
</form>
841-
</div>
842841
</div>
843842
</motion.div>
844843
</div>

0 commit comments

Comments
 (0)