@rpg-engine/long-bow 0.8.159 → 0.8.160

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.8.159",
3
+ "version": "0.8.160",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -84,7 +84,7 @@
84
84
  "dependencies": {
85
85
  "@capacitor/core": "^6.1.0",
86
86
  "@rollup/plugin-image": "^2.1.1",
87
- "@rpg-engine/shared": "^0.10.94",
87
+ "@rpg-engine/shared": "0.10.93",
88
88
  "dayjs": "^1.11.2",
89
89
  "font-awesome": "^4.7.0",
90
90
  "fs-extra": "^10.1.0",
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FaShoppingCart } from 'react-icons/fa';
3
3
  import styled from 'styled-components';
4
- import { formatDCAmount } from '@rpg-engine/shared';
5
4
  import { InternalTabs } from '../InternalTabs/InternalTabs';
6
5
  import { DCHistoryPanel, IDCTransaction } from './DCHistoryPanel';
7
6
  import { DCTransferPanel, IDCTransferCharacterResult } from './DCTransferPanel';
@@ -85,7 +84,7 @@ export const DCWalletContent: React.FC<IDCWalletContentProps> = ({
85
84
  <BalanceTop>
86
85
  <BalanceBlock>
87
86
  <BalanceLabel>DC BALANCE</BalanceLabel>
88
- <BalanceAmount>{formatDCAmount(dcBalance)} <BalanceDC>DC</BalanceDC></BalanceAmount>
87
+ <BalanceAmount>{dcBalance.toLocaleString()} <BalanceDC>DC</BalanceDC></BalanceAmount>
89
88
  <BalanceEquiv>≈ ${usdValue} USD &nbsp;·&nbsp; {goldValue} Gold</BalanceEquiv>
90
89
  </BalanceBlock>
91
90
  {onBuyDC && (
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  IMarketplaceBlueprintSearchRequest,
3
3
  IMarketplaceBlueprintSummary,
4
- ItemType,
5
4
  ItemSubType,
6
5
  } from '@rpg-engine/shared';
7
6
  import { debounce } from 'lodash';
@@ -39,7 +38,8 @@ const scaleIn = keyframes`
39
38
 
40
39
  const typeOptions: IOptionsProps[] = [
41
40
  { id: 1, value: '', option: 'All Types' },
42
- ...Object.keys(ItemType)
41
+ ...Object.keys(ItemSubType)
42
+ .filter((t) => t !== 'DeadBody')
43
43
  .map((t, index) => ({ id: index + 2, value: t, option: t })),
44
44
  ];
45
45
 
@@ -109,6 +109,7 @@ export interface IMarketPlaceProps {
109
109
 
110
110
  // Wallet tab
111
111
  walletProps?: IDCWalletContentProps;
112
+ showWalletTab?: boolean;
112
113
  }
113
114
 
114
115
  type ActiveTab = 'marketplace' | 'sell' | 'buy-orders' | 'history' | 'wallet' | 'settings';
@@ -153,6 +154,7 @@ export const Marketplace: React.FC<IMarketPlaceProps> = props => {
153
154
  onHistoryPageChange,
154
155
  // Wallet
155
156
  walletProps,
157
+ showWalletTab = true,
156
158
  } = props;
157
159
 
158
160
  const [activeTab, setActiveTab] = useState<ActiveTab>('marketplace');
@@ -211,7 +213,7 @@ export const Marketplace: React.FC<IMarketPlaceProps> = props => {
211
213
  label: 'History',
212
214
  icon: <Clock width={18} height={18} />,
213
215
  },
214
- ...(walletProps
216
+ ...(showWalletTab && walletProps
215
217
  ? [
216
218
  {
217
219
  id: 'wallet',
@@ -293,7 +295,7 @@ export const Marketplace: React.FC<IMarketPlaceProps> = props => {
293
295
  />
294
296
  )}
295
297
 
296
- {activeTab === 'wallet' && walletProps && (
298
+ {activeTab === 'wallet' && showWalletTab && walletProps && (
297
299
  <DCWalletContent {...walletProps} />
298
300
  )}
299
301