@rpg-engine/long-bow 0.8.158 → 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.
@@ -72,5 +72,6 @@ export interface IMarketPlaceProps {
72
72
  onHistoryTypeChange?: (type: string) => void;
73
73
  onHistoryPageChange?: (page: number) => void;
74
74
  walletProps?: IDCWalletContentProps;
75
+ showWalletTab?: boolean;
75
76
  }
76
77
  export declare const Marketplace: React.FC<IMarketPlaceProps>;
@@ -46964,7 +46964,9 @@ var Marketplace = function Marketplace(props) {
46964
46964
  historySelectedType = _props$historySelecte === void 0 ? 'All' : _props$historySelecte,
46965
46965
  onHistoryTypeChange = props.onHistoryTypeChange,
46966
46966
  onHistoryPageChange = props.onHistoryPageChange,
46967
- walletProps = props.walletProps;
46967
+ walletProps = props.walletProps,
46968
+ _props$showWalletTab = props.showWalletTab,
46969
+ showWalletTab = _props$showWalletTab === void 0 ? true : _props$showWalletTab;
46968
46970
  var _useState = React.useState('marketplace'),
46969
46971
  activeTab = _useState[0],
46970
46972
  setActiveTab = _useState[1];
@@ -47027,7 +47029,7 @@ var Marketplace = function Marketplace(props) {
47027
47029
  width: 18,
47028
47030
  height: 18
47029
47031
  })
47030
- }].concat(walletProps ? [{
47032
+ }].concat(showWalletTab && walletProps ? [{
47031
47033
  id: 'wallet',
47032
47034
  label: 'Wallet',
47033
47035
  icon: React__default.createElement(Wallet.Wallet, {
@@ -47095,7 +47097,7 @@ var Marketplace = function Marketplace(props) {
47095
47097
  atlasJSON: props.atlasJSON,
47096
47098
  atlasIMG: props.atlasIMG,
47097
47099
  dcToGoldSwapRate: props.dcToGoldSwapRate
47098
- }), activeTab === 'wallet' && walletProps && React__default.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
47100
+ }), activeTab === 'wallet' && showWalletTab && walletProps && React__default.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
47099
47101
  acceptedCurrency: acceptedCurrency,
47100
47102
  onAcceptedCurrencyChange: handleCurrencyChange
47101
47103
  }), showSharedPager && React__default.createElement(PagerContainer$3, null, React__default.createElement(Pager, Object.assign({}, props))));