release/2025-06-02 - Lint Updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { useApolloClient, useQuery } from "@apollo/client";
|
import { useQuery } from "@apollo/client";
|
||||||
import { Input, Table } from "antd";
|
import { Input, Table } from "antd";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@@ -9,9 +9,6 @@ import { GET_PHONE_NUMBER_OPT_OUTS } from "../../graphql/phone-number-opt-out.qu
|
|||||||
|
|
||||||
import PhoneNumberFormatter from "../../utils/PhoneFormatter";
|
import PhoneNumberFormatter from "../../utils/PhoneFormatter";
|
||||||
import { TimeAgoFormatter } from "../../utils/DateFormatter";
|
import { TimeAgoFormatter } from "../../utils/DateFormatter";
|
||||||
import { phone } from "phone";
|
|
||||||
import { useSocket } from "../../contexts/SocketIO/useSocket.js";
|
|
||||||
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
|
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
bodyshop: selectBodyshop,
|
bodyshop: selectBodyshop,
|
||||||
@@ -23,13 +20,10 @@ const mapDispatchToProps = () => ({});
|
|||||||
function PhoneNumberConsentList({ bodyshop, currentUser }) {
|
function PhoneNumberConsentList({ bodyshop, currentUser }) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [search, setSearch] = useState("");
|
const [search, setSearch] = useState("");
|
||||||
const notification = useNotification();
|
const { loading, data } = useQuery(GET_PHONE_NUMBER_OPT_OUTS, {
|
||||||
const { loading, data, refetch } = useQuery(GET_PHONE_NUMBER_OPT_OUTS, {
|
|
||||||
variables: { bodyshopid: bodyshop.id, search: search ? `%${search}%` : undefined },
|
variables: { bodyshopid: bodyshop.id, search: search ? `%${search}%` : undefined },
|
||||||
fetchPolicy: "network-only"
|
fetchPolicy: "network-only"
|
||||||
});
|
});
|
||||||
const client = useApolloClient();
|
|
||||||
const { socket } = useSocket();
|
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user