fix(dashboard): Add missing inventory list zones (#10117)
Resolves CMRC-710
This commit is contained in:
1 parent
1afc577e54
commit
8ed3d87c23
2 files changed
+16
-4
No files matched your search
@@ -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 { InventoryListTable } from "./components/inventory-list-table"
|
||||||
import { Outlet } from "react-router-dom"
|
|
||||||
|
|
||||||
export const InventoryItemListTable = () => {
|
export const InventoryItemListTable = () => {
|
||||||
|
const { getWidgets } = useDashboardExtension()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-y-2">
|
<SingleColumnPage
|
||||||
|
widgets={{
|
||||||
|
after: getWidgets("inventory_item.list.after"),
|
||||||
|
before: getWidgets("inventory_item.list.before"),
|
||||||
|
}}
|
||||||
|
>
|
||||||
<InventoryListTable />
|
<InventoryListTable />
|
||||||
<Outlet />
|
</SingleColumnPage>
|
||||||
</div>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user