remove unused redux state

This commit is contained in:
Alex Holliday committed 2025-06-13 13:32:55 +08:00
1 parent b499b2879c
commit ab3f867b5b
2 files changed
-5

No files matched your search

-1
View File
@@ -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";
-4
View File
@@ -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);