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
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user