mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
chore: remove the unused hook
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
import { Formik } from 'formik';
|
import { Formik } from 'formik';
|
||||||
import { Link, useHistory } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { Intent } from '@blueprintjs/core';
|
import { Intent } from '@blueprintjs/core';
|
||||||
|
|
||||||
import { AppToaster, FormattedMessage as T } from '@/components';
|
import { AppToaster, FormattedMessage as T } from '@/components';
|
||||||
@@ -40,19 +40,18 @@ export default function RegisterUserForm() {
|
|||||||
authLoginMutate({
|
authLoginMutate({
|
||||||
crediential: values.email,
|
crediential: values.email,
|
||||||
password: values.password,
|
password: values.password,
|
||||||
})
|
}).catch(
|
||||||
.catch(
|
({
|
||||||
({
|
response: {
|
||||||
response: {
|
data: { errors },
|
||||||
data: { errors },
|
|
||||||
},
|
|
||||||
}) => {
|
|
||||||
AppToaster.show({
|
|
||||||
message: intl.get('something_wentwrong'),
|
|
||||||
intent: Intent.SUCCESS,
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
);
|
}) => {
|
||||||
|
AppToaster.show({
|
||||||
|
message: intl.get('something_wentwrong'),
|
||||||
|
intent: Intent.SUCCESS,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.catch(
|
.catch(
|
||||||
({
|
({
|
||||||
|
|||||||
Reference in New Issue
Block a user