Merge branch 'develop' into fix/fe/minor-bugfixes
This commit is contained in:
commit
a408160957
1 file changed
+30
-1
@@ -69,6 +69,11 @@ const LandingPage = ({ isAdmin, onSignup }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
LandingPage.propTypes = {
|
||||||
|
isAdmin: PropTypes.bool,
|
||||||
|
onSignup: PropTypes.func,
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the first step of the sign up process.
|
* Renders the first step of the sign up process.
|
||||||
*
|
*
|
||||||
@@ -152,6 +157,14 @@ const StepOne = ({ form, errors, onSubmit, onChange, onBack }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
StepOne.propTypes = {
|
||||||
|
form: PropTypes.object,
|
||||||
|
errors: PropTypes.object,
|
||||||
|
onSubmit: PropTypes.func,
|
||||||
|
onChange: PropTypes.func,
|
||||||
|
onBack: PropTypes.func,
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the second step of the sign up process.
|
* Renders the second step of the sign up process.
|
||||||
*
|
*
|
||||||
@@ -224,6 +237,14 @@ const StepTwo = ({ form, errors, onSubmit, onChange, onBack }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
StepTwo.propTypes = {
|
||||||
|
form: PropTypes.object,
|
||||||
|
errors: PropTypes.object,
|
||||||
|
onSubmit: PropTypes.func,
|
||||||
|
onChange: PropTypes.func,
|
||||||
|
onBack: PropTypes.func,
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the third step of the sign up process.
|
* Renders the third step of the sign up process.
|
||||||
*
|
*
|
||||||
@@ -369,6 +390,14 @@ const StepThree = ({ form, errors, onSubmit, onChange, onBack }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
StepThree.propTypes = {
|
||||||
|
form: PropTypes.object,
|
||||||
|
errors: PropTypes.object,
|
||||||
|
onSubmit: PropTypes.func,
|
||||||
|
onChange: PropTypes.func,
|
||||||
|
onBack: PropTypes.func,
|
||||||
|
};
|
||||||
|
|
||||||
const Register = ({ isAdmin }) => {
|
const Register = ({ isAdmin }) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@@ -407,7 +436,7 @@ const Register = ({ isAdmin }) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
fetchInvite();
|
fetchInvite();
|
||||||
}, [token]);
|
}, [token, form]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the form data against the validation schema.
|
* Validates the form data against the validation schema.
|
||||||
|
|||||||
Reference in new issue
Block a user