@rpg-engine/long-bow 0.5.10 → 0.5.11

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.5.10",
3
+ "version": "0.5.11",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -197,24 +197,28 @@ export const ItemContainer: React.FC<IItemContainerProps> = ({
197
197
  </ItemsContainer>
198
198
  {totalPages > 1 && (
199
199
  <ArrowContainer>
200
- <SelectArrow
201
- className='arrow .arrow-up'
202
- direction="left"
203
- onPointerDown={() => {
204
- if (currentPage > 1) {
205
- goToPreviousPage();
206
- }
207
- }}
208
- />
209
- <SelectArrow
210
- className='arrow .arrow-down'
211
- direction="right"
212
- onPointerDown={() => {
213
- if (currentPage < totalPages) {
214
- goToNextPage();
215
- }
216
- }}
217
- />
200
+ {currentPage > 1 && (
201
+ <SelectArrow
202
+ className='arrow .arrow-up'
203
+ direction="left"
204
+ onPointerDown={() => {
205
+ if (currentPage > 1) {
206
+ goToPreviousPage();
207
+ }
208
+ }}
209
+ />
210
+ )}
211
+ {currentPage < totalPages && (
212
+ <SelectArrow
213
+ className='arrow .arrow-down'
214
+ direction="right"
215
+ onPointerDown={() => {
216
+ if (currentPage < totalPages) {
217
+ goToNextPage();
218
+ }
219
+ }}
220
+ />
221
+ )}
218
222
  </ArrowContainer>
219
223
  )}
220
224
  </SlotsContainer>