unify requests
This commit is contained in:
1 parent
4ad09fad4f
commit
2b0c523047
2 files changed
+2
-18
No files matched your search
@@ -13,10 +13,7 @@ import { useTheme } from "@emotion/react";
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { useIsAdmin } from "@/Hooks/useIsAdmin.js";
|
import { useIsAdmin } from "@/Hooks/useIsAdmin.js";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import {
|
import { useFetchMonitorsWithChecks } from "@/Hooks/monitorHooks.js";
|
||||||
useFetchMonitorsByTeamId,
|
|
||||||
useFetchMonitorsWithChecks,
|
|
||||||
} from "@/Hooks/monitorHooks.js";
|
|
||||||
|
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
import { setRowsPerPage } from "../../../Features/UI/uiSlice.js";
|
import { setRowsPerPage } from "../../../Features/UI/uiSlice.js";
|
||||||
|
|||||||
@@ -11,10 +11,7 @@ import FallbackPageSpeedWarning from "@/Components/v1/Fallback/FallbackPageSpeed
|
|||||||
// Utils
|
// Utils
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { useIsAdmin } from "@/Hooks/useIsAdmin.js";
|
import { useIsAdmin } from "@/Hooks/useIsAdmin.js";
|
||||||
import {
|
import { useFetchMonitorsWithChecks } from "@/Hooks/monitorHooks.js";
|
||||||
useFetchMonitorsByTeamId,
|
|
||||||
useFetchMonitorsWithChecks,
|
|
||||||
} from "@/Hooks/monitorHooks.js";
|
|
||||||
import { useFetchSettings } from "@/Hooks/settingsHooks.js";
|
import { useFetchSettings } from "@/Hooks/settingsHooks.js";
|
||||||
// Constants
|
// Constants
|
||||||
const BREADCRUMBS = [{ name: `pagespeed`, path: "/pagespeed" }];
|
const BREADCRUMBS = [{ name: `pagespeed`, path: "/pagespeed" }];
|
||||||
@@ -23,16 +20,6 @@ const PageSpeed = () => {
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const isAdmin = useIsAdmin();
|
const isAdmin = useIsAdmin();
|
||||||
|
|
||||||
// const [monitors, monitorsSummary, isLoading, networkError] = useFetchMonitorsByTeamId({
|
|
||||||
// limit: 10,
|
|
||||||
// types: TYPES,
|
|
||||||
// page: null,
|
|
||||||
// rowsPerPage: null,
|
|
||||||
// filter: null,
|
|
||||||
// field: null,
|
|
||||||
// order: null,
|
|
||||||
// });
|
|
||||||
|
|
||||||
const [
|
const [
|
||||||
monitorsWithChecks,
|
monitorsWithChecks,
|
||||||
monitorsWithChecksCount,
|
monitorsWithChecksCount,
|
||||||
|
|||||||
Reference in new issue
Block a user