mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Add auto refresh dropdown (#620)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user