Add auto refresh dropdown (#620)

This commit is contained in:
Saeed Vaziry
2025-06-21 22:17:49 +02:00
committed by GitHub
parent 736e27fa4e
commit dd14e69239
8 changed files with 107 additions and 9 deletions

View File

@ -26,15 +26,13 @@ import { ReactNode } from 'react';
import { Server } from '@/types/server';
import ServerHeader from '@/pages/servers/components/header';
import Layout from '@/layouts/app/layout';
import { usePage, usePoll } from '@inertiajs/react';
import { usePage } from '@inertiajs/react';
import { Site } from '@/types/site';
import PHPIcon from '@/icons/php';
import NodeIcon from '@/icons/node';
import siteHelper from '@/lib/site-helper';
export default function ServerLayout({ children }: { children: ReactNode }) {
usePoll(7000);
const page = usePage<{
server: Server;
site?: Site;