MCPcopy Create free account
hub / github.com/Packstack-Tech/packstack / renderTables

Function renderTables

frontend/src/app/Inventory/index.tsx:50–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 function renderTables() {
51 const tables = categories.map(cat => {
52 let catItems = items.filter(i => i.categoryId === cat.id);
53 catItems = searchItems(catItems, filterText);
54
55 if (!catItems.length) return null;
56 return <Table key={cat.id} category={cat} items={catItems} fetchItems={fetchItems} updateItem={updateItem}/>
57 });
58
59 return <div style={{ minWidth: '100%', overflowX: "scroll" }}>{tables}</div>;
60 }
61
62 const renderEmptyList = () => (
63 <MessageArea>

Callers 1

InventoryFunction · 0.85

Calls 1

searchItemsFunction · 0.90

Tested by

no test coverage detected