chore: remove the unused hook

This commit is contained in:
Ahmed Bouhuolia
2024-05-15 14:03:34 +02:00
parent 3f68d11062
commit 4f30f72d36

View File

@@ -1,7 +1,7 @@
// @ts-nocheck
import intl from 'react-intl-universal';
import { Formik } from 'formik';
import { Link, useHistory } from 'react-router-dom';
import { Link } from 'react-router-dom';
import { Intent } from '@blueprintjs/core';
import { AppToaster, FormattedMessage as T } from '@/components';
@@ -40,19 +40,18 @@ export default function RegisterUserForm() {
authLoginMutate({
crediential: values.email,
password: values.password,
})
.catch(
({
response: {
data: { errors },
},
}) => {
AppToaster.show({
message: intl.get('something_wentwrong'),
intent: Intent.SUCCESS,
});
}).catch(
({
response: {
data: { errors },
},
);
}) => {
AppToaster.show({
message: intl.get('something_wentwrong'),
intent: Intent.SUCCESS,
});
},
);
})
.catch(
({