Remove unused imports, add missing dependencies
This commit is contained in:
1 parent
7a8ea60e65
commit
8b87bf3c9e
10 files changed
+11
-33
No files matched your search
@@ -1 +0,0 @@
|
||||
/* Home Page Styles*/
|
||||
@@ -1,16 +0,0 @@
|
||||
import DropdownTeamMember from "../../Components/DropdownTeamMember";
|
||||
import Search from "../../Components/Search";
|
||||
import "./index.css";
|
||||
import DashboardMenu from "../../Components/DashboardMenu";
|
||||
import Integrations from "../../Components/Integrations";
|
||||
|
||||
const Home = () => {
|
||||
const token = localStorage.getItem("token");
|
||||
return (
|
||||
<>
|
||||
<div>Home</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Home;
|
||||
@@ -36,7 +36,7 @@ const IncidentTable = ({ monitors, selectedMonitor, filter }) => {
|
||||
...paginationController,
|
||||
page: 0,
|
||||
});
|
||||
}, [filter, selectedMonitor]);
|
||||
}, [filter, selectedMonitor, paginationController]);
|
||||
|
||||
useEffect(() => {
|
||||
const fetchPage = async () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Box, Stack, Typography } from "@mui/material";
|
||||
import "./index.css";
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import Button from "../../../Components/Button";
|
||||
import Back from "../../../assets/icons/left-arrow-long.svg?react";
|
||||
import Select from "../../../Components/Inputs/Select";
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import { useTheme } from "@emotion/react";
|
||||
import Fallback from "../../Components/Fallback";
|
||||
import "./index.css";
|
||||
|
||||
const Maintenance = () => {
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
<div className="maintenance">
|
||||
<Fallback
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "./index.css";
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import RadioButton from "../../../Components/RadioButton";
|
||||
import Button from "../../../Components/Button";
|
||||
import { Box, ButtonGroup, Stack, Typography } from "@mui/material";
|
||||
|
||||
@@ -33,7 +33,7 @@ const PaginationTable = ({ monitorId, dateRange }) => {
|
||||
...paginationController,
|
||||
page: 0,
|
||||
});
|
||||
}, [dateRange]);
|
||||
}, [dateRange, paginationController]);
|
||||
|
||||
useEffect(() => {
|
||||
const fetchPage = async () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useState, useCallback } from "react";
|
||||
import { useEffect, useState, useCallback } from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { Box, Skeleton, Stack, Typography, useTheme } from "@mui/material";
|
||||
import { useSelector } from "react-redux";
|
||||
@@ -144,15 +144,14 @@ const DetailsPage = () => {
|
||||
useEffect(() => {
|
||||
const fetchCertificate = async () => {
|
||||
try {
|
||||
const res = await networkService.getCertificateExpiry(
|
||||
authToken,
|
||||
monitorId
|
||||
);
|
||||
setCertificateExpiry(res?.data?.data?.certificateDate ?? "N/A");
|
||||
const res = await networkService.getCertificateExpiry(
|
||||
authToken,
|
||||
monitorId
|
||||
);
|
||||
setCertificateExpiry(res?.data?.data?.certificateDate ?? "N/A");
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
};
|
||||
fetchCertificate();
|
||||
}, [authToken, monitorId]);
|
||||
|
||||
@@ -28,7 +28,6 @@ import {
|
||||
|
||||
import Settings from "../../assets/icons/settings-bold.svg?react";
|
||||
import PropTypes from "prop-types";
|
||||
import { logger } from "../../Utils/Logger";
|
||||
|
||||
const ActionsMenu = ({ monitor }) => {
|
||||
const [anchorEl, setAnchorEl] = useState(null);
|
||||
|
||||
@@ -99,7 +99,7 @@ const PageSpeedConfigure = () => {
|
||||
setMonitor({
|
||||
...data,
|
||||
});
|
||||
}, [monitorId]);
|
||||
}, [monitorId, monitors, navigate]);
|
||||
|
||||
const handleChange = (event, id) => {
|
||||
let { value } = event.target;
|
||||
|
||||
Reference in new issue
Block a user