chore(env): update application version to 2.2.8 in production environment
feat(marketing): enhance step components with validity reporting - Added onValidityChange prop to multiple step components (BenefitsStep, ChallengesStep, ChartStep, ContactsStep, FeaturesStep, FooterStep, HeroStep) to handle form validity. - Updated respective presenter hooks to utilize the new onValidityChange functionality for real-time validity reporting. - Enhanced MarketingForm to manage step validity and disable the next button based on current step validity.
This commit is contained in:
@@ -7,10 +7,11 @@ import useChallengesStepPresenter, {
|
||||
|
||||
interface ChallengesStepProps {
|
||||
initialData?: IChallengesStepFields;
|
||||
onValidityChange?: (valid: boolean) => void;
|
||||
}
|
||||
|
||||
const ChallengesStep = forwardRef<unknown, ChallengesStepProps>(
|
||||
({ initialData }, ref) => {
|
||||
({ initialData, onValidityChange }, ref) => {
|
||||
const {
|
||||
errors,
|
||||
handleSubmit,
|
||||
@@ -20,7 +21,7 @@ const ChallengesStep = forwardRef<unknown, ChallengesStepProps>(
|
||||
append,
|
||||
remove,
|
||||
control,
|
||||
} = useChallengesStepPresenter(initialData, ref);
|
||||
} = useChallengesStepPresenter(initialData, ref, onValidityChange);
|
||||
|
||||
return (
|
||||
<SectionStep<IChallengesStepFields>
|
||||
|
||||
Reference in New Issue
Block a user