Feature: nested groups (#4346)

This commit is contained in:
shamoon
2024-11-27 17:01:47 -08:00
committed by GitHub
parent 907abee1aa
commit be8363cc35
10 changed files with 119 additions and 55 deletions

View File

@@ -1,9 +1,9 @@
import { useTranslation } from "react-i18next";
import useSWR from "swr";
export default function Ping({ group, service, style }) {
export default function Ping({ groupName, serviceName, style }) {
const { t } = useTranslation();
const { data, error } = useSWR(`/api/ping?${new URLSearchParams({ group, service }).toString()}`, {
const { data, error } = useSWR(`/api/ping?${new URLSearchParams({ groupName, serviceName }).toString()}`, {
refreshInterval: 30000,
});