Changes to smoothen page transitions

This commit is contained in:
Nithin David Thomas
2024-02-12 18:09:43 +05:30
parent 2d69cd0fdb
commit 922db887e8
13 changed files with 638 additions and 274 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ export const login = async ({
export const register = async creds => {
try {
const response = await wootAPI.post('api/v1/accounts.json', {
const response = await wootAPI.post('api/v2/accounts.json', {
email: creds.email,
password: creds.password,
h_captcha_client_response: creds.hCaptchaClientResponse,
@@ -42,11 +42,11 @@ export const register = async creds => {
export const accountSetup = async ({ id, name, locale }) => {
try {
const response = await wootAPI.put(`api/v1/accounts/${id}.json`, {
const response = await wootAPI.put(`api/v2/accounts/${id}.json`, {
name,
locale,
});
setAuthCredentials(response);
// setAuthCredentials(response);
return response.data;
} catch (error) {
throwErrorMessage(error);