diff --git a/src/Corporation/ui/IndustryWarehouse.tsx b/src/Corporation/ui/IndustryWarehouse.tsx index ac5c0d2d0..9ac826feb 100644 --- a/src/Corporation/ui/IndustryWarehouse.tsx +++ b/src/Corporation/ui/IndustryWarehouse.tsx @@ -94,15 +94,8 @@ function ProductComponent(props: IProductProps): React.ReactElement { }); } - function openMaterialMarketTaPopup(): void { - const popupId = "cmpy-mgmt-export-popup"; - createPopup(popupId, MaterialMarketTaPopup, { - mat: product, - industry: division, - corp: props.corp, - popupId: popupId, - }); - } + // Market TA button + const marketTaButtonOnClick = eventHandler.createProductMarketTaPopup.bind(eventHandler, product, division); // Unfinished Product if (!product.fin) { @@ -125,7 +118,7 @@ function ProductComponent(props: IProductProps): React.ReactElement { { division.hasResearch("Market-TA.I") && - } @@ -205,7 +198,7 @@ function ProductComponent(props: IProductProps): React.ReactElement { { division.hasResearch("Market-TA.I") && - }