Package cleanup & transition to latest apollo.

This commit is contained in:
Patrick Fic
2021-02-24 08:48:55 -08:00
parent 359edea97c
commit 46014261d6
202 changed files with 31740 additions and 1174 deletions

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,6 +1,6 @@
import queryString from "query-string";
import React, { useEffect } from "react";
import { useQuery } from "react-apollo";
import { useQuery } from "@apollo/client";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { useLocation } from "react-router-dom";

View File

@@ -1,4 +1,4 @@
import { useMutation } from "@apollo/react-hooks";
import { useMutation } from "@apollo/client";
import { Form, notification } from "antd";
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,4 +1,4 @@
import { useMutation, useQuery } from "@apollo/react-hooks";
import { useMutation, useQuery } from "@apollo/client";
import { Form, notification } from "antd";
import moment from "moment";
import React, { useEffect, useState } from "react";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,4 +1,4 @@
import { useMutation } from "@apollo/react-hooks";
import { useMutation } from "@apollo/client";
import { Form, notification } from "antd";
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,4 +1,4 @@
import { useMutation, useQuery } from "@apollo/react-hooks";
import { useMutation, useQuery } from "@apollo/client";
import { Form, notification } from "antd";
import moment from "moment";
import React, { useEffect, useState } from "react";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,4 +1,4 @@
import { useQuery, useMutation } from "@apollo/react-hooks";
import { useQuery, useMutation } from "@apollo/client";
import { Form, Layout, Typography, Button, Result } from "antd";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import { Result } from "antd";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import queryString from "query-string";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import { Col, Row, Typography } from "antd";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,6 +1,6 @@
import { Button, Form, notification, Popconfirm, Space } from "antd";
import React, { useState } from "react";
import { useApolloClient, useMutation } from "react-apollo";
import { useApolloClient, useMutation } from "@apollo/client";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { useHistory } from "react-router-dom";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,5 +1,5 @@
import _ from "lodash";
import { useLazyQuery, useMutation } from "@apollo/react-hooks";
import { useLazyQuery, useMutation } from "@apollo/client";
import { Form, notification } from "antd";
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,4 +1,4 @@
import { useMutation, useQuery } from "@apollo/react-hooks";
import { useMutation, useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { connect } from "react-redux";
import AlertComponent from "../../components/alert/alert.component";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";

View File

@@ -1,5 +1,5 @@
import { SyncOutlined } from "@ant-design/icons";
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import { Button, Input, Table } from "antd";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import queryString from "query-string";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -8,7 +8,7 @@ import {
} from "../../redux/application/application.actions";
import { selectBodyshop } from "../../redux/user/user.selectors";
import ScoreboardPageComponent from "./scoreboard.page.component";
import { useSubscription } from "@apollo/react-hooks";
import { useSubscription } from "@apollo/client";
import { SUBSCRIPTION_SCOREBOARD } from "../../graphql/scoreboard.queries";
import moment from "moment";
import RbacWrapper from "../../components/rbac-wrapper/rbac-wrapper.component";

View File

@@ -1,5 +1,5 @@
import { Row, Col } from "antd";
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import queryString from "query-string";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React, { useEffect } from "react";
import { connect } from "react-redux";
import AlertComponent from "../../components/alert/alert.component";
@@ -23,7 +23,7 @@ export function TechPageContainer({ setBodyshop, match }) {
if (loading)
return <LoadingSpinner message={t("general.labels.loadingshop")} />;
if (error) return <AlertComponent message={error.message} type='error' />;
if (error) return <AlertComponent message={error.message} type="error" />;
return <TechPage match={match} />;
}

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import React from "react";
import AlertComponent from "../../components/alert/alert.component";
import JobsDocumentsComponent from "../../components/jobs-documents-gallery/jobs-documents-gallery.component";

View File

@@ -1,4 +1,4 @@
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import moment from "moment";
import queryString from "query-string";
import React, { useEffect } from "react";

View File

@@ -1,6 +1,6 @@
import React, { useEffect } from "react";
import VehicleDetailComponent from "./vehicles-detail.page.component";
import { useQuery } from "@apollo/react-hooks";
import { useQuery } from "@apollo/client";
import { QUERY_VEHICLE_BY_ID } from "../../graphql/vehicles.queries";
import LoadingSpinner from "../../components/loading-spinner/loading-spinner.component";
import AlertComponent from "../../components/alert/alert.component";