@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.
- package/dist/components/Marketplace/Marketplace.d.ts +1 -0
- 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/Marketplace/Marketplace.tsx +4 -2
package/package.json
CHANGED
|
@@ -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
|
|