Feature: nested groups (#4346)

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

No files matched your search

+2 -2
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,
});