File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/components/feedback-form Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,12 @@ const Question: React.FC<QuestionProps> = ({
66
66
break
67
67
}
68
68
case 'text' : {
69
- const { optional, buttonText, nextQuestion } = question
69
+ const {
70
+ optional,
71
+ buttonText,
72
+ nextQuestion,
73
+ placeholder = 'Your feedback...' ,
74
+ } = question
70
75
const isButtonDisabled =
71
76
! optional && ( inputValue === '' || feedbackContext . isTransitioning )
72
77
const inputHasEntry = inputValue . length
@@ -82,7 +87,7 @@ const Question: React.FC<QuestionProps> = ({
82
87
s . textArea ,
83
88
inputHasEntry ? s . visited : null
84
89
) }
85
- placeholder = "Your feedback..."
90
+ placeholder = { placeholder }
86
91
/>
87
92
{ optional && ! inputHasEntry ? (
88
93
< span className = { s . optionalText } > (optional)</ span >
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ interface FeedbackQuestionText extends FeedbackQuestionBase {
29
29
icon ?: ReactElement < React . JSX . IntrinsicElements [ 'svg' ] >
30
30
buttonText : string
31
31
nextQuestion ?: string
32
+ placeholder ?: string
32
33
optional ?: boolean
33
34
}
34
35
You can’t perform that action at this time.
0 commit comments