Revert all package upgrades to unblock testing.

This commit is contained in:
Patrick Fic
2023-01-25 11:20:51 -08:00
parent d8cc25a54f
commit 66a80e439f
131 changed files with 18482 additions and 10892 deletions

View File

@@ -2,13 +2,14 @@ import { Space } from "antd";
import Axios from "axios";
import queryString from "query-string";
import React, { useEffect } from "react";
import { useCookies } from "react-cookie";
import { useHistory, useLocation } from "react-router-dom";
import QboSignIn from "../../assets/qbo/C2QB_green_btn_med_default.svg";
export default function QboAuthorizeComponent() {
const location = useLocation();
const history = useHistory();
const [, setCookie] = useCookies(["access_token", "refresh_token"]);
const handleQbSignIn = async () => {
const result = await Axios.post("/qbo/authorize");
@@ -41,7 +42,7 @@ export default function QboAuthorizeComponent() {
history.push({ pathname: `/manage/accounting/receivables` });
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [qs, location]);
}, [qs, location, setCookie]);
return (
<Space>