@rpg-engine/long-bow 0.8.154 → 0.8.155

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.154",
3
+ "version": "0.8.155",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -91,6 +91,7 @@ export const BuyPanel: React.FC<IBuyPanelProps> = ({
91
91
  openBuyOrdersTotal = 0,
92
92
  openBuyOrdersPage = 1,
93
93
  onOpenBuyOrdersPageChange,
94
+ isLoading = false,
94
95
 
95
96
  }) => {
96
97
  const [name, setName] = useState('');
@@ -371,11 +372,15 @@ export const BuyPanel: React.FC<IBuyPanelProps> = ({
371
372
  )}
372
373
 
373
374
  <ItemComponentScrollWrapper id="MarketContainer" ref={itemsContainer}>
374
- {!hasVisibleContent ? (
375
+ {isLoading ? (
375
376
  <LoadingState>
376
377
  <Spinner />
377
378
  <LoadingText>Loading marketplace...</LoadingText>
378
379
  </LoadingState>
380
+ ) : !hasVisibleContent ? (
381
+ <LoadingState>
382
+ <LoadingText>No items listed.</LoadingText>
383
+ </LoadingState>
379
384
  ) : (
380
385
  <>
381
386
  {showSellSection && (