IO-766 Added Disk Scan for estimates.

This commit is contained in:
Patrick Fic
2021-03-17 16:56:12 -07:00
parent 674dc5c83f
commit c27f66fdb3
15 changed files with 286 additions and 30851 deletions

View File

@@ -3,7 +3,23 @@ import axios from "axios";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
export default function PartnerPingComponent() {
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
import { setPartnerVersion } from "../../redux/application/application.actions";
const mapStateToProps = createStructuredSelector({
//currentUser: selectCurrentUser
});
const mapDispatchToProps = (dispatch) => ({
//setUserLanguage: language => dispatch(setUserLanguage(language))
setPartnerVersion: (version) => dispatch(setPartnerVersion(version)),
});
export default connect(
mapStateToProps,
mapDispatchToProps
)(PartnerPingComponent);
export function PartnerPingComponent({ setPartnerVersion }) {
const { t } = useTranslation();
useEffect(() => {
@@ -13,6 +29,7 @@ export default function PartnerPingComponent() {
if (process.env.NODE_ENV === "development") return;
const PartnerResponse = await axios.post("http://localhost:1337/ping/");
const { appver, qbpath } = PartnerResponse.data;
setPartnerVersion(appver);
console.log({ appver, qbpath });
if (!qbpath) {
notification["error"]({