@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -69,7 +69,7 @@ const Container = styled.div<IContainerProps>`
69
69
 
70
70
  display: flex;
71
71
  flex-direction: column;
72
- width: 100%;
72
+ width: max-content;
73
73
  justify-content: start;
74
74
  align-items: flex-start;
75
75
 
@@ -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 { ITransactionItem } from '@rpg-engine/shared';
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: ITransactionItem) => {
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.