From 5c47088b11c542c71e4c3c860f7c4cfdba361bd5 Mon Sep 17 00:00:00 2001 From: Dave Richer Date: Thu, 22 May 2025 11:37:47 -0400 Subject: [PATCH] release/2025-06-02 - Lint Updates --- .../phone-number-consent.component.jsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/client/src/components/phone-number-consent/phone-number-consent.component.jsx b/client/src/components/phone-number-consent/phone-number-consent.component.jsx index 020bb1750..7981a3db2 100644 --- a/client/src/components/phone-number-consent/phone-number-consent.component.jsx +++ b/client/src/components/phone-number-consent/phone-number-consent.component.jsx @@ -1,4 +1,4 @@ -import { useApolloClient, useQuery } from "@apollo/client"; +import { useQuery } from "@apollo/client"; import { Input, Table } from "antd"; import { useState } from "react"; 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 { 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({ bodyshop: selectBodyshop, @@ -23,13 +20,10 @@ const mapDispatchToProps = () => ({}); function PhoneNumberConsentList({ bodyshop, currentUser }) { const { t } = useTranslation(); const [search, setSearch] = useState(""); - const notification = useNotification(); - const { loading, data, refetch } = useQuery(GET_PHONE_NUMBER_OPT_OUTS, { + const { loading, data } = useQuery(GET_PHONE_NUMBER_OPT_OUTS, { variables: { bodyshopid: bodyshop.id, search: search ? `%${search}%` : undefined }, fetchPolicy: "network-only" }); - const client = useApolloClient(); - const { socket } = useSocket(); const columns = [ {