-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dashboard): Add missing inventory list zones (#10117)
Resolves CMRC-710
- Loading branch information
1 parent
1afc577
commit 8ed3d87
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@medusajs/dashboard": patch | ||
--- | ||
|
||
fix(dashboard): Add missing inventory_item.list.\* widgets |
15 changes: 11 additions & 4 deletions
15
packages/admin/dashboard/src/routes/inventory/inventory-list/inventory-list.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
) | ||
} |