@rpg-engine/long-bow 0.2.37 → 0.2.38
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 +1 -0
- package/dist/long-bow.cjs.development.js +10 -3
- 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 +10 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/TradingMenu/TradingMenu.tsx +9 -1
package/dist/long-bow.esm.js
CHANGED
|
@@ -29434,7 +29434,8 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
29434
29434
|
atlasJSON = _ref.atlasJSON,
|
|
29435
29435
|
atlasIMG = _ref.atlasIMG,
|
|
29436
29436
|
characterAvailableGold = _ref.characterAvailableGold,
|
|
29437
|
-
onChangeTraderItems = _ref.onChangeTraderItems
|
|
29437
|
+
onChangeTraderItems = _ref.onChangeTraderItems,
|
|
29438
|
+
onConfirm = _ref.onConfirm;
|
|
29438
29439
|
var _useState = useState(0),
|
|
29439
29440
|
sum = _useState[0],
|
|
29440
29441
|
setSum = _useState[1];
|
|
@@ -29479,9 +29480,15 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
29479
29480
|
}));
|
|
29480
29481
|
})), React.createElement(GoldWrapper, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold)), React.createElement(TotalWrapper, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), sum > characterAvailableGold ? React.createElement(AlertWrapper, null, React.createElement("p", null, " Sorry, not enough money.")) : React.createElement(GoldWrapper, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", characterAvailableGold - sum)), React.createElement(ButtonWrapper, null, React.createElement(Button, {
|
|
29481
29482
|
buttonType: ButtonTypes.RPGUIButton,
|
|
29482
|
-
disabled: sum > characterAvailableGold
|
|
29483
|
+
disabled: sum > characterAvailableGold,
|
|
29484
|
+
onClick: function onClick() {
|
|
29485
|
+
return onConfirm();
|
|
29486
|
+
}
|
|
29483
29487
|
}, "Confirm"), React.createElement(Button, {
|
|
29484
|
-
buttonType: ButtonTypes.RPGUIButton
|
|
29488
|
+
buttonType: ButtonTypes.RPGUIButton,
|
|
29489
|
+
onClick: function onClick() {
|
|
29490
|
+
return onClose();
|
|
29491
|
+
}
|
|
29485
29492
|
}, "Cancel"))));
|
|
29486
29493
|
};
|
|
29487
29494
|
var Title$3 = /*#__PURE__*/styled.h1.withConfig({
|