File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
components/form/BookDemoForm Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,11 @@ type BookDemoType = {
14
14
tell_us_more : string ;
15
15
} ;
16
16
17
- const BookDemoForm = ( ) => {
17
+ interface BookDemoFormProps {
18
+ submit_text ?: string ;
19
+ }
20
+
21
+ const BookDemoForm = ( { submit_text = "Submit" } : BookDemoFormProps ) => {
18
22
const [ okMessage , setOkMessage ] = useState ( false ) ;
19
23
const [ errorMessage , setErrorMessage ] = useState ( false ) ;
20
24
const [ values , setValues ] = useState < BookDemoType > ( {
@@ -94,7 +98,7 @@ const BookDemoForm = () => {
94
98
< textarea rows = { 7 } name = "tell_us_more" onChange = { handleInputChange } > </ textarea >
95
99
</ label >
96
100
< div className = "button" >
97
- < Button text = "Submit" type = "submit" />
101
+ < Button text = { submit_text } type = "submit" />
98
102
</ div >
99
103
</ form >
100
104
{ okMessage && (
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ const tags = [
87
87
</div >
88
88
<ContentLimiter contentId =" sla-support-content" maxWidth ={ 1100 } >
89
89
<div class =" product-features" >
90
- <BookDemoForm client:load />
90
+ <BookDemoForm submit_text = " Get Evaluation Key " client:load />
91
91
</div >
92
92
</ContentLimiter >
93
93
</div >
You can’t perform that action at this time.
0 commit comments