Merged in release/2023-04-28 (pull request #731)
Remove unneeded imports.
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
import { Card, Col, Space, Statistic, Typography } from "antd";
|
|
||||||
import { useLocation } from "react-router-dom";
|
|
||||||
import queryString from "query-string";
|
|
||||||
import moment from "moment";
|
|
||||||
import { useQuery } from "@apollo/client";
|
import { useQuery } from "@apollo/client";
|
||||||
import { QUERY_TIME_TICKETS_TECHNICIAN_IN_RANGE } from "../../graphql/timetickets.queries";
|
import { Card, Col, Space, Statistic, Typography } from "antd";
|
||||||
import { createStructuredSelector } from "reselect";
|
import moment from "moment";
|
||||||
import { selectTechnician } from "../../redux/tech/tech.selectors";
|
|
||||||
import { connect } from "react-redux";
|
|
||||||
import AlertComponent from "../alert/alert.component";
|
|
||||||
import LoadingSpinner from "../loading-spinner/loading-spinner.component";
|
|
||||||
import { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { connect } from "react-redux";
|
||||||
|
import { createStructuredSelector } from "reselect";
|
||||||
|
import { QUERY_TIME_TICKETS_TECHNICIAN_IN_RANGE } from "../../graphql/timetickets.queries";
|
||||||
|
import { selectTechnician } from "../../redux/tech/tech.selectors";
|
||||||
|
import AlertComponent from "../alert/alert.component";
|
||||||
|
import LoadingSpinner from "../loading-spinner/loading-spinner.component";
|
||||||
const { Title } = Typography;
|
const { Title } = Typography;
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
@@ -21,7 +19,7 @@ const mapDispatchToProps = (dispatch) => ({});
|
|||||||
const TechJobStatistics = ({ technician }) => {
|
const TechJobStatistics = ({ technician }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const startDate = moment().startOf("week")
|
const startDate = moment().startOf("week");
|
||||||
const endDate = moment().endOf("week");
|
const endDate = moment().endOf("week");
|
||||||
|
|
||||||
const { loading, error, data } = useQuery(
|
const { loading, error, data } = useQuery(
|
||||||
|
|||||||
Reference in New Issue
Block a user