From ab3f867b5bd7e06652b519031728997720502c3e Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 13 Jun 2025 13:32:55 +0800 Subject: [PATCH] remove unused redux state --- client/src/Hooks/useNotifications.js | 1 - client/src/Pages/Uptime/Create/index.jsx | 4 ---- 2 files changed, 5 deletions(-) diff --git a/client/src/Hooks/useNotifications.js b/client/src/Hooks/useNotifications.js index b269c5edc..f19b76dde 100644 --- a/client/src/Hooks/useNotifications.js +++ b/client/src/Hooks/useNotifications.js @@ -2,7 +2,6 @@ import { useState, useEffect, useCallback } from "react"; import { createToast } from "../Utils/toastUtils"; import { networkService } from "../main"; import { useNavigate } from "react-router-dom"; -import { useSelector } from "react-redux"; import { useTranslation } from "react-i18next"; import { NOTIFICATION_TYPES } from "../Pages/Notifications/utils"; diff --git a/client/src/Pages/Uptime/Create/index.jsx b/client/src/Pages/Uptime/Create/index.jsx index c800e295c..0dce03889 100644 --- a/client/src/Pages/Uptime/Create/index.jsx +++ b/client/src/Pages/Uptime/Create/index.jsx @@ -18,7 +18,6 @@ import FormControlLabel from "@mui/material/FormControlLabel"; import { useTheme } from "@emotion/react"; import { useNavigate } from "react-router-dom"; import { useState } from "react"; -import { useSelector } from "react-redux"; import { useTranslation } from "react-i18next"; import { monitorValidation } from "../../../Validation/validation"; import { createToast } from "../../../Utils/toastUtils"; @@ -26,9 +25,6 @@ import { useGetNotificationsByTeamId } from "../../../Hooks/useNotifications"; import { useCreateMonitor } from "../../../Hooks/monitorHooks"; const CreateMonitor = () => { - // Redux state - const { user } = useSelector((state) => state.auth); - // Local state const [errors, setErrors] = useState({}); const [https, setHttps] = useState(true);