mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
fix: register.
This commit is contained in:
@@ -73,7 +73,7 @@ function RegisterUserForm({ requestRegister, requestLogin }) {
|
|||||||
validationSchema: ValidationSchema,
|
validationSchema: ValidationSchema,
|
||||||
initialValues: {
|
initialValues: {
|
||||||
...initialValues,
|
...initialValues,
|
||||||
country: 'libya',
|
country: 'LY',
|
||||||
},
|
},
|
||||||
onSubmit: (values, { setSubmitting, setErrors }) => {
|
onSubmit: (values, { setSubmitting, setErrors }) => {
|
||||||
requestRegister(values)
|
requestRegister(values)
|
||||||
@@ -152,7 +152,6 @@ function RegisterUserForm({ requestRegister, requestLogin }) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form onSubmit={handleSubmit} className={'authentication-page__form'}>
|
<form onSubmit={handleSubmit} className={'authentication-page__form'}>
|
||||||
|
|
||||||
<Row className={'name-section'}>
|
<Row className={'name-section'}>
|
||||||
<Col md={6}>
|
<Col md={6}>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
@@ -279,6 +278,4 @@ function RegisterUserForm({ requestRegister, requestLogin }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default compose(
|
export default compose(withAuthenticationActions)(RegisterUserForm);
|
||||||
withAuthenticationActions,
|
|
||||||
)(RegisterUserForm);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user