mirror of
https://github.com/wassname/talk.git
synced 2026-07-21 12:51:03 +08:00
Merge pull request #1371 from coralproject/fix-auth-proptypes
Fix proptypes errors in auth
This commit is contained in:
@@ -75,7 +75,7 @@ ForgotPassword.propTypes = {
|
||||
email: PropTypes.string.isRequired,
|
||||
onEmailChange: PropTypes.func.isRequired,
|
||||
onSubmit: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
onSignInLink: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ SignIn.propTypes = {
|
||||
onForgotPasswordLink: PropTypes.func.isRequired,
|
||||
onRecaptchaVerify: PropTypes.func.isRequired,
|
||||
onSubmit: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
requireRecaptcha: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class ForgotPasswordContainer extends Component {
|
||||
ForgotPasswordContainer.propTypes = {
|
||||
success: PropTypes.bool.isRequired,
|
||||
forgotPassword: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
onSignInLink: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class SignInContainer extends Component {
|
||||
|
||||
SignInContainer.propTypes = {
|
||||
signIn: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
onForgotPasswordLink: PropTypes.func.isRequired,
|
||||
requireRecaptcha: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
@@ -73,7 +73,7 @@ ForgotPassword.propTypes = {
|
||||
email: PropTypes.string.isRequired,
|
||||
onEmailChange: PropTypes.func.isRequired,
|
||||
onSubmit: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
onSignInLink: PropTypes.func.isRequired,
|
||||
onSignUpLink: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
@@ -52,7 +52,7 @@ ResendVerification.propTypes = {
|
||||
loading: PropTypes.bool.isRequired,
|
||||
email: PropTypes.string.isRequired,
|
||||
onSubmit: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
};
|
||||
|
||||
export default ResendVerification;
|
||||
|
||||
@@ -129,7 +129,7 @@ SignIn.propTypes = {
|
||||
onSignUpLink: PropTypes.func.isRequired,
|
||||
onRecaptchaVerify: PropTypes.func.isRequired,
|
||||
onSubmit: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
requireRecaptcha: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
|
||||
@@ -145,20 +145,20 @@ class SignUp extends React.Component {
|
||||
SignUp.propTypes = {
|
||||
loading: PropTypes.bool.isRequired,
|
||||
username: PropTypes.string.isRequired,
|
||||
usernameError: PropTypes.string.isRequired,
|
||||
usernameError: PropTypes.string,
|
||||
email: PropTypes.string.isRequired,
|
||||
emailError: PropTypes.string.isRequired,
|
||||
emailError: PropTypes.string,
|
||||
password: PropTypes.string.isRequired,
|
||||
passwordError: PropTypes.string.isRequired,
|
||||
passwordError: PropTypes.string,
|
||||
passwordRepeat: PropTypes.string.isRequired,
|
||||
passwordRepeatError: PropTypes.string.isRequired,
|
||||
passwordRepeatError: PropTypes.string,
|
||||
onUsernameChange: PropTypes.func.isRequired,
|
||||
onEmailChange: PropTypes.func.isRequired,
|
||||
onPasswordChange: PropTypes.func.isRequired,
|
||||
onPasswordRepeatChange: PropTypes.func.isRequired,
|
||||
onSignInLink: PropTypes.func.isRequired,
|
||||
onSubmit: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
requireEmailConfirmation: PropTypes.bool.isRequired,
|
||||
success: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@ class ForgotPasswordContainer extends Component {
|
||||
ForgotPasswordContainer.propTypes = {
|
||||
success: PropTypes.bool.isRequired,
|
||||
forgotPassword: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
setView: PropTypes.func.isRequired,
|
||||
email: PropTypes.string.isRequired,
|
||||
setEmail: PropTypes.func.isRequired,
|
||||
|
||||
@@ -61,7 +61,7 @@ class SignInContainer extends Component {
|
||||
|
||||
SignInContainer.propTypes = {
|
||||
signIn: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
requireRecaptcha: PropTypes.bool.isRequired,
|
||||
requireEmailConfirmation: PropTypes.bool.isRequired,
|
||||
loading: PropTypes.bool.isRequired,
|
||||
|
||||
@@ -109,7 +109,7 @@ SignUpContainer.propTypes = {
|
||||
setPassword: PropTypes.func.isRequired,
|
||||
signUp: PropTypes.func.isRequired,
|
||||
loading: PropTypes.bool.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
requireEmailConfirmation: PropTypes.bool.isRequired,
|
||||
success: PropTypes.bool.isRequired,
|
||||
validate: PropTypes.func.isRequired,
|
||||
|
||||
@@ -75,10 +75,10 @@ class SetUsernameDialog extends React.Component {
|
||||
SetUsernameDialog.propTypes = {
|
||||
loading: PropTypes.bool.isRequired,
|
||||
username: PropTypes.string.isRequired,
|
||||
usernameError: PropTypes.string.isRequired,
|
||||
usernameError: PropTypes.string,
|
||||
onUsernameChange: PropTypes.func.isRequired,
|
||||
onSubmit: PropTypes.func.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
};
|
||||
|
||||
export default SetUsernameDialog;
|
||||
|
||||
@@ -47,7 +47,7 @@ SetUsernameDialogContainer.propTypes = {
|
||||
username: PropTypes.string,
|
||||
setUsername: PropTypes.func.isRequired,
|
||||
loading: PropTypes.bool.isRequired,
|
||||
errorMessage: PropTypes.string.isRequired,
|
||||
errorMessage: PropTypes.string,
|
||||
success: PropTypes.bool.isRequired,
|
||||
validateUsername: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user