2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-30 18:50:53 +00:00

React interface updates (#5798)

* Fix for <ActionDropdown> component

- Ensure component key is set properly

* Update <PageDetail> component

- Consolidate and simplify

* Update proxy settings for react development

* Fixes for StatusRenderer component

- Cannot use state hook inside function

* Add PurchaseOrderDetail page

* Tweak ApiImage component

* Add "ReceivedStock" table to PurchaseOrder detail page

* Add SalesOrderDetail page

* Add ReturnOrderDetail page

* Cleanup unused variables

* Remove import for unused icon
This commit is contained in:
Oliver
2023-10-27 14:39:17 +11:00
committed by GitHub
parent 22e9b14743
commit 0acfaced83
23 changed files with 470 additions and 76 deletions

View File

@ -39,12 +39,12 @@ export function ActionDropdown({
</Tooltip>
</Menu.Target>
<Menu.Dropdown>
{actions.map((action, index) =>
{actions.map((action) =>
action.disabled ? null : (
<Tooltip label={action.tooltip}>
<Tooltip label={action.tooltip} key={`tooltip-${action.name}`}>
<Menu.Item
icon={action.icon}
key={index}
key={action.name}
onClick={() => {
if (action.onClick != undefined) {
action.onClick();