Fixed pages rerendering on sidebar state change

This commit is contained in:
Daniel Cojocea committed 2024-08-29 02:19:19 -04:00
1 parent aca350495a
commit 111501156f
4 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -140,6 +140,7 @@ const SkeletonLayout = () => {
* @component
*/
const DetailsPage = ({ isAdmin }) => {
const theme = useTheme();
const [monitor, setMonitor] = useState({});
const { monitorId } = useParams();
const { authToken } = useSelector((state) => state.auth);
@@ -184,7 +185,6 @@ const DetailsPage = ({ isAdmin }) => {
fetchCertificate();
}, [authToken, monitorId]);
const theme = useTheme();
let loading = Object.keys(monitor).length === 0;
return (
<Box className="monitor-details">