Merge pull request #1857 from bluewave-labs/feat/test-dist-monitor

feat: test DePIN monitor
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-03-03 10:38:54 -08:00
commit 0823447707
3 files changed
+5 -3

No files matched your search

@@ -1,6 +1,5 @@
import { useState, useEffect, useRef } from "react";
import { networkService } from "../../../../main";
import { useSelector } from "react-redux";
const getRandomDevice = () => {
const manufacturers = {
@@ -20,7 +20,6 @@ const MonitorTable = ({ isLoading, monitors }) => {
const theme = useTheme();
const navigate = useNavigate();
const { determineState } = useMonitorUtils();
const headers = [
{
id: "name",
@@ -24,7 +24,11 @@ const useSubscribeToMonitors = (page, rowsPerPage) => {
const cleanup = networkService.subscribeToDistributedUptimeMonitors({
teamId: user.teamId,
limit: 25,
types: ["distributed_http"],
types: [
typeof import.meta.env.VITE_DEPIN_TESTING === "undefined"
? "distributed_http"
: "distributed_test",
],
page,
rowsPerPage,
filter: null,