This commit is contained in:
x032205
2025-10-17 06:29:48 -04:00
parent f218b5a944
commit 1e6beb08c9
5 changed files with 18 additions and 14 deletions
@@ -48,8 +48,8 @@ import { usePopUp } from "@app/hooks";
import { gatewaysQueryKeys, useDeleteGatewayById } from "@app/hooks/api/gateways";
import { useDeleteGatewayV2ById } from "@app/hooks/api/gateways-v2";
import { EditGatewayDetailsModal } from "./components/EditGatewayDetailsModal";
import { DeployGatewayModal } from "./components/DeployGatewayModal";
import { EditGatewayDetailsModal } from "./components/EditGatewayDetailsModal";
const GatewayHealthStatus = ({ heartbeat }: { heartbeat?: string }) => {
const heartbeatDate = heartbeat ? new Date(heartbeat) : null;
@@ -1,3 +1,10 @@
import { useEffect, useMemo, useState } from "react";
import { SingleValue } from "react-select";
import { faCopy, faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate } from "@tanstack/react-router";
import { twMerge } from "tailwind-merge";
import { createNotification } from "@app/components/notifications";
import {
FilterableSelect,
@@ -7,6 +14,7 @@ import {
Modal,
ModalContent
} from "@app/components/v2";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization } from "@app/context";
import {
useAddIdentityTokenAuth,
@@ -16,14 +24,8 @@ import {
} from "@app/hooks/api";
import { useGetRelays } from "@app/hooks/api/relays";
import { slugSchema } from "@app/lib/schemas";
import { faCopy, faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useEffect, useMemo, useState } from "react";
import { SingleValue } from "react-select";
import { RelayOption } from "./RelayOption";
import { useNavigate } from "@tanstack/react-router";
import { ROUTE_PATHS } from "@app/const/routes";
import { twMerge } from "tailwind-merge";
type Props = {
isOpen: boolean;
@@ -1,3 +1,9 @@
import { useEffect, useMemo, useState } from "react";
import { SingleValue } from "react-select";
import { faCopy, faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { twMerge } from "tailwind-merge";
import { createNotification } from "@app/components/notifications";
import {
FilterableSelect,
@@ -15,11 +21,6 @@ import {
useGetIdentityTokenAuth
} from "@app/hooks/api";
import { slugSchema } from "@app/lib/schemas";
import { faCopy, faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useEffect, useMemo, useState } from "react";
import { SingleValue } from "react-select";
import { twMerge } from "tailwind-merge";
type Props = {
isOpen: boolean;
@@ -1,10 +1,10 @@
import { useNavigate, useSearch } from "@tanstack/react-router";
import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
import { ROUTE_PATHS } from "@app/const/routes";
import { GatewayTab } from "../GatewayTab/GatewayTab";
import { RelayTab } from "../RelayTab/RelayTab";
import { ROUTE_PATHS } from "@app/const/routes";
export const NetworkingTabGroup = () => {
const navigate = useNavigate({
@@ -43,6 +43,7 @@ import {
import { withPermission } from "@app/hoc";
import { usePopUp } from "@app/hooks";
import { useDeleteRelayById, useGetRelays } from "@app/hooks/api/relays";
import { DeployRelayModal } from "../GatewayTab/components/DeployRelayModal";
const RelayHealthStatus = ({ heartbeat }: { heartbeat?: string }) => {