@rpg-engine/long-bow 0.8.168 → 0.8.169
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/Marketplace/ManagmentPanel.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +9 -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 +9 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/ManagmentPanel.tsx +22 -13
- package/src/stories/Features/trading/Marketplace.stories.tsx +9 -1
|
@@ -46845,7 +46845,9 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
46845
46845
|
enableHotkeys = _ref.enableHotkeys,
|
|
46846
46846
|
disableHotkeys = _ref.disableHotkeys,
|
|
46847
46847
|
onMoneyWithdraw = _ref.onMoneyWithdraw,
|
|
46848
|
-
currentPage = _ref.currentPage
|
|
46848
|
+
currentPage = _ref.currentPage,
|
|
46849
|
+
_ref$dcToGoldSwapRate = _ref.dcToGoldSwapRate,
|
|
46850
|
+
dcToGoldSwapRate = _ref$dcToGoldSwapRate === void 0 ? 0 : _ref$dcToGoldSwapRate;
|
|
46849
46851
|
var _useState = React.useState(''),
|
|
46850
46852
|
price = _useState[0],
|
|
46851
46853
|
setPrice = _useState[1];
|
|
@@ -46981,14 +46983,18 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
46981
46983
|
var item = _ref2.item,
|
|
46982
46984
|
price = _ref2.price,
|
|
46983
46985
|
_id = _ref2._id,
|
|
46984
|
-
|
|
46986
|
+
itemCurrency = _ref2.acceptedCurrency;
|
|
46987
|
+
var currency = itemCurrency || shared.MarketplaceAcceptedCurrency.GoldOrDc;
|
|
46988
|
+
var isDcOnly = currency === shared.MarketplaceAcceptedCurrency.Dc;
|
|
46989
|
+
var showDcPrice = isDcOnly || dcToGoldSwapRate > 0 && currency !== shared.MarketplaceAcceptedCurrency.Gold;
|
|
46985
46990
|
return React__default.createElement(MarketplaceRows, {
|
|
46986
46991
|
key: item.key + "_" + index,
|
|
46987
46992
|
atlasIMG: atlasIMG,
|
|
46988
46993
|
atlasJSON: atlasJSON,
|
|
46989
46994
|
item: item,
|
|
46990
46995
|
itemPrice: price,
|
|
46991
|
-
|
|
46996
|
+
dcEquivalentPrice: showDcPrice ? shared.goldToDC(price) : undefined,
|
|
46997
|
+
acceptedCurrency: currency,
|
|
46992
46998
|
equipmentSet: equipmentSet,
|
|
46993
46999
|
onMarketPlaceItemRemove: setRemovingItemId.bind(null, _id)
|
|
46994
47000
|
});
|