File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/components/statementWizard/steps Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1- // src/components/statementWizard/steps/ComplementStep.tsx
21import React from 'react' ;
32import StepContainer from '../StepContainer' ;
43import { Button } from '../../ui/button' ;
54
65interface ComplementStepProps {
76 onComplete : ( ) => void ;
87 onBack : ( ) => void ;
8+ isSubmitting ?: boolean ;
99}
1010
1111export const ComplementStep : React . FC < ComplementStepProps > = ( {
1212 onComplete,
1313 onBack,
14+ isSubmitting = false ,
1415} ) => {
1516 const subQuestion = 'Add additional statement if needed' ;
1617 return (
@@ -21,8 +22,13 @@ export const ComplementStep: React.FC<ComplementStepProps> = ({
2122 later add custom statements to complement it.
2223 </ p >
2324 </ div >
24- < Button onClick = { onComplete } variant = 'pink' className = 'mx-auto mt-4' >
25- Finish
25+ < Button
26+ onClick = { onComplete }
27+ variant = 'pink'
28+ className = 'mx-auto mt-4'
29+ disabled = { isSubmitting }
30+ >
31+ { isSubmitting ? 'Submitting...' : 'Finish' }
2632 </ Button >
2733 </ StepContainer >
2834 ) ;
You can’t perform that action at this time.
0 commit comments