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 = {
1414 tell_us_more : string ;
1515} ;
1616
17- const BookDemoForm = ( ) => {
17+ interface BookDemoFormProps {
18+ submit_text ?: string ;
19+ }
20+
21+ const BookDemoForm = ( { submit_text = "Submit" } : BookDemoFormProps ) => {
1822 const [ okMessage , setOkMessage ] = useState ( false ) ;
1923 const [ errorMessage , setErrorMessage ] = useState ( false ) ;
2024 const [ values , setValues ] = useState < BookDemoType > ( {
@@ -94,7 +98,7 @@ const BookDemoForm = () => {
9498 < textarea rows = { 7 } name = "tell_us_more" onChange = { handleInputChange } > </ textarea >
9599 </ label >
96100 < div className = "button" >
97- < Button text = "Submit" type = "submit" />
101+ < Button text = { submit_text } type = "submit" />
98102 </ div >
99103 </ form >
100104 { okMessage && (
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ const tags = [
8787 </div >
8888 <ContentLimiter contentId =" sla-support-content" maxWidth ={ 1100 } >
8989 <div class =" product-features" >
90- <BookDemoForm client:load />
90+ <BookDemoForm submit_text = " Get Evaluation Key " client:load />
9191 </div >
9292 </ContentLimiter >
9393 </div >
You can’t perform that action at this time.
0 commit comments