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,
|
...paginationController,
|
||||||
page: 0,
|
page: 0,
|
||||||
});
|
});
|
||||||
}, [filter, selectedMonitor]);
|
}, [filter, selectedMonitor, paginationController]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchPage = async () => {
|
const fetchPage = async () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Box, Stack, Typography } from "@mui/material";
|
import { Box, Stack, Typography } from "@mui/material";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import React, { useState } from "react";
|
import { useState } from "react";
|
||||||
import Button from "../../../Components/Button";
|
import Button from "../../../Components/Button";
|
||||||
import Back from "../../../assets/icons/left-arrow-long.svg?react";
|
import Back from "../../../assets/icons/left-arrow-long.svg?react";
|
||||||
import Select from "../../../Components/Inputs/Select";
|
import Select from "../../../Components/Inputs/Select";
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
import { useTheme } from "@emotion/react";
|
|
||||||
import Fallback from "../../Components/Fallback";
|
import Fallback from "../../Components/Fallback";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
|
||||||
const Maintenance = () => {
|
const Maintenance = () => {
|
||||||
const theme = useTheme();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="maintenance">
|
<div className="maintenance">
|
||||||
<Fallback
|
<Fallback
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import "./index.css";
|
import "./index.css";
|
||||||
import React, { useState } from "react";
|
import { useState } from "react";
|
||||||
import RadioButton from "../../../Components/RadioButton";
|
import RadioButton from "../../../Components/RadioButton";
|
||||||
import Button from "../../../Components/Button";
|
import Button from "../../../Components/Button";
|
||||||
import { Box, ButtonGroup, Stack, Typography } from "@mui/material";
|
import { Box, ButtonGroup, Stack, Typography } from "@mui/material";
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const PaginationTable = ({ monitorId, dateRange }) => {
|
|||||||
...paginationController,
|
...paginationController,
|
||||||
page: 0,
|
page: 0,
|
||||||
});
|
});
|
||||||
}, [dateRange]);
|
}, [dateRange, paginationController]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchPage = async () => {
|
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 PropTypes from "prop-types";
|
||||||
import { Box, Skeleton, Stack, Typography, useTheme } from "@mui/material";
|
import { Box, Skeleton, Stack, Typography, useTheme } from "@mui/material";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
@@ -144,15 +144,14 @@ const DetailsPage = () => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchCertificate = async () => {
|
const fetchCertificate = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await networkService.getCertificateExpiry(
|
const res = await networkService.getCertificateExpiry(
|
||||||
authToken,
|
authToken,
|
||||||
monitorId
|
monitorId
|
||||||
);
|
);
|
||||||
setCertificateExpiry(res?.data?.data?.certificateDate ?? "N/A");
|
setCertificateExpiry(res?.data?.data?.certificateDate ?? "N/A");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
fetchCertificate();
|
fetchCertificate();
|
||||||
}, [authToken, monitorId]);
|
}, [authToken, monitorId]);
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ import {
|
|||||||
|
|
||||||
import Settings from "../../assets/icons/settings-bold.svg?react";
|
import Settings from "../../assets/icons/settings-bold.svg?react";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import { logger } from "../../Utils/Logger";
|
|
||||||
|
|
||||||
const ActionsMenu = ({ monitor }) => {
|
const ActionsMenu = ({ monitor }) => {
|
||||||
const [anchorEl, setAnchorEl] = useState(null);
|
const [anchorEl, setAnchorEl] = useState(null);
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ const PageSpeedConfigure = () => {
|
|||||||
setMonitor({
|
setMonitor({
|
||||||
...data,
|
...data,
|
||||||
});
|
});
|
||||||
}, [monitorId]);
|
}, [monitorId, monitors, navigate]);
|
||||||
|
|
||||||
const handleChange = (event, id) => {
|
const handleChange = (event, id) => {
|
||||||
let { value } = event.target;
|
let { value } = event.target;
|
||||||
|
|||||||
Reference in new issue
Block a user