@rpg-engine/long-bow 0.2.39 → 0.2.41
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/long-bow.cjs.development.js +5 -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 +5 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/RelativeListMenu.tsx +1 -1
- package/src/components/TradingMenu/TradingMenu.tsx +2 -2
- package/src/stories/ItemTradingComponent.stories.tsx +2 -2
package/package.json
CHANGED
|
@@ -57,8 +57,8 @@ export const TradingMenu: React.FC<ITrandingMenu> = ({
|
|
|
57
57
|
<hr className="golden" />
|
|
58
58
|
</div>
|
|
59
59
|
<TradingComponentScrollWrapper>
|
|
60
|
-
{traderItems.map(tradeItem => (
|
|
61
|
-
<ItemWrapper>
|
|
60
|
+
{traderItems.map((tradeItem, index) => (
|
|
61
|
+
<ItemWrapper key={`${tradeItem.key}_${index}`}>
|
|
62
62
|
<TradingItemRow
|
|
63
63
|
atlasIMG={atlasIMG}
|
|
64
64
|
atlasJSON={atlasJSON}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITradeResponseItem } from '@rpg-engine/shared';
|
|
2
2
|
import { Meta, Story } from '@storybook/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import atlasJSON from '../mocks/atlas/items/items.json';
|
|
11
11
|
import atlasIMG from '../mocks/atlas/items/items.png';
|
|
12
12
|
|
|
13
|
-
const updateChartTotals = (itemInfo:
|
|
13
|
+
const updateChartTotals = (itemInfo: ITradeResponseItem) => {
|
|
14
14
|
console.log(itemInfo);
|
|
15
15
|
// will be needed read all itens from chart list ignoring the current item (itemInfo) and recalculate the totals
|
|
16
16
|
// with the amount updated set the total to a state to be shown to the player.
|