Add services status view with polling and control actions
CI / basic-check (push) Has been cancelled
CI / basic-check (push) Has been cancelled
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { AppLayout } from '../components/AppLayout';
|
||||
import { fetchObjects } from '../lib/api';
|
||||
import type { ViewKey } from '../types';
|
||||
|
||||
export function InventoryView() {
|
||||
export function InventoryView({ onNavigate }: { onNavigate: (v: ViewKey) => void }) {
|
||||
const [objects, setObjects] = useState<Awaited<ReturnType<typeof fetchObjects>>>([]);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -10,7 +11,7 @@ export function InventoryView() {
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<AppLayout current="inventory" onNavigate={() => {}}>
|
||||
<AppLayout current="inventory" onNavigate={onNavigate}>
|
||||
<header className="header">
|
||||
<h1 className="page-title">Inventory</h1>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user