fix(dashboard): Add missing inventory list zones (#10117)

Resolves CMRC-710
This commit is contained in:
Kasper Fabricius Kristensen
2024-11-15 13:09:26 +00:00
committed by GitHub
parent 1afc577e54
commit 8ed3d87c23
2 changed files with 16 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/dashboard": patch
---
fix(dashboard): Add missing inventory_item.list.\* widgets
@@ -1,11 +1,18 @@
import { SingleColumnPage } from "../../../components/layout/pages"
import { useDashboardExtension } from "../../../extensions"
import { InventoryListTable } from "./components/inventory-list-table"
import { Outlet } from "react-router-dom"
export const InventoryItemListTable = () => {
const { getWidgets } = useDashboardExtension()
return (
<div className="flex flex-col gap-y-2">
<SingleColumnPage
widgets={{
after: getWidgets("inventory_item.list.after"),
before: getWidgets("inventory_item.list.before"),
}}
>
<InventoryListTable />
<Outlet />
</div>
</SingleColumnPage>
)
}