From 56d9335162ce90801e69923af5cc6470b1236af9 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 28 Feb 2022 10:25:16 +0100 Subject: [PATCH] docs: set customer type correctly --- website/src/components/UserFeedback/index.jsx | 92 ++++++++++--------- 1 file changed, 48 insertions(+), 44 deletions(-) diff --git a/website/src/components/UserFeedback/index.jsx b/website/src/components/UserFeedback/index.jsx index 732a1c65cbc..3c0fbef31c6 100644 --- a/website/src/components/UserFeedback/index.jsx +++ b/website/src/components/UserFeedback/index.jsx @@ -95,7 +95,14 @@ export const FeedbackWrapper = ({ seedData, open }) => { const Step1 = () => { const [newValue, setNewValue] = React.useState(undefined); return ( -
+ { + e.preventDefault(); + setScore(newValue); + stepForward(); + }} + >

On a scale from 1 to 5 where 1 is very unsatisfied and 5 @@ -151,17 +158,7 @@ export const FeedbackWrapper = ({ seedData, open }) => {

- +
); @@ -169,8 +166,18 @@ export const FeedbackWrapper = ({ seedData, open }) => { const Step2 = () => { const textareaId = 'feedback-comment-input'; + const saveComment = () => + setComment(document.getElementById(textareaId).value); + return ( -
+ { + e.preventDefault(); + saveComment(); + stepForward(); + }} + >