@rpg-engine/long-bow 0.2.38 → 0.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/TradingMenu/TradingMenu.d.ts +0 -1
- package/dist/long-bow.cjs.development.js +5 -9
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +5 -9
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/TradingMenu/TradingMenu.tsx +4 -10
- package/src/stories/ItemTradingComponent.stories.tsx +2 -2
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/NPCDialog/img/.DS_Store +0 -0
- package/src/mocks/.DS_Store +0 -0
|
@@ -29436,7 +29436,6 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
29436
29436
|
atlasJSON = _ref.atlasJSON,
|
|
29437
29437
|
atlasIMG = _ref.atlasIMG,
|
|
29438
29438
|
characterAvailableGold = _ref.characterAvailableGold,
|
|
29439
|
-
onChangeTraderItems = _ref.onChangeTraderItems,
|
|
29440
29439
|
onConfirm = _ref.onConfirm;
|
|
29441
29440
|
var _useState = React.useState(0),
|
|
29442
29441
|
sum = _useState[0],
|
|
@@ -29452,11 +29451,6 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
29452
29451
|
setSum(newSumArray);
|
|
29453
29452
|
});
|
|
29454
29453
|
};
|
|
29455
|
-
React.useEffect(function () {
|
|
29456
|
-
if (onChangeTraderItems) {
|
|
29457
|
-
onChangeTraderItems(traderItems);
|
|
29458
|
-
}
|
|
29459
|
-
}, [traderItems]);
|
|
29460
29454
|
var Capitalize = function Capitalize(word) {
|
|
29461
29455
|
return word[0].toUpperCase() + word.substring(1);
|
|
29462
29456
|
};
|
|
@@ -29473,8 +29467,10 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
29473
29467
|
}
|
|
29474
29468
|
}, React__default.createElement(Title$3, null, Capitalize(type), " Menu"), React__default.createElement("hr", {
|
|
29475
29469
|
className: "golden"
|
|
29476
|
-
})), React__default.createElement(TradingComponentScrollWrapper, null, traderItems.map(function (tradeItem) {
|
|
29477
|
-
return React__default.createElement(ItemWrapper$1,
|
|
29470
|
+
})), React__default.createElement(TradingComponentScrollWrapper, null, traderItems.map(function (tradeItem, index) {
|
|
29471
|
+
return React__default.createElement(ItemWrapper$1, {
|
|
29472
|
+
key: tradeItem.key + "_" + index
|
|
29473
|
+
}, React__default.createElement(TradingItemRow, {
|
|
29478
29474
|
atlasIMG: atlasIMG,
|
|
29479
29475
|
atlasJSON: atlasJSON,
|
|
29480
29476
|
updateChartTotals: updateChartTotals,
|
|
@@ -29516,7 +29512,7 @@ var GoldWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
29516
29512
|
var AlertWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29517
29513
|
displayName: "TradingMenu__AlertWrapper",
|
|
29518
29514
|
componentId: "sc-1wjsz1l-5"
|
|
29519
|
-
})(["display:flex;width:100%;justify-content:center;height:20px;p{color:red !important;}"]);
|
|
29515
|
+
})(["margin-top:1rem;display:flex;width:100%;justify-content:center;height:20px;p{color:red !important;}"]);
|
|
29520
29516
|
var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29521
29517
|
displayName: "TradingMenu__ButtonWrapper",
|
|
29522
29518
|
componentId: "sc-1wjsz1l-6"
|