From e7bbdf179cde9769c86300bf2d54798bba985fab Mon Sep 17 00:00:00 2001 From: Batman Date: Thu, 22 Apr 2021 02:55:02 -0300 Subject: [PATCH] Inventory tabs fix --- src/views/inventory/InventoryView.tsx | 2 +- .../inventory/tabs-content/InventoryTabsContentView.tsx | 8 ++++---- .../tabs-content/badges/InventoryTabBadgesView.tsx | 2 +- .../inventory/tabs-content/bots/InventoryTabBotsView.tsx | 2 +- .../tabs-content/furniture/InventoryTabFurnitureView.tsx | 2 +- .../inventory/tabs-content/pets/InventoryTabPetsView.tsx | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/inventory/InventoryView.tsx b/src/views/inventory/InventoryView.tsx index 6b9b0e59..181b0639 100644 --- a/src/views/inventory/InventoryView.tsx +++ b/src/views/inventory/InventoryView.tsx @@ -15,7 +15,7 @@ export const InventoryView: FC = props => const [ isVisible, setIsVisible ] = useState(false); const [ currentTab, setCurrentTab ] = useState(null); const [ tabs, setTabs ] = useState([ - InventoryTabs.FURNITURE, InventoryTabs.BOTS, InventoryTabs.PETS, InventoryTabs.PETS + InventoryTabs.FURNITURE, InventoryTabs.BOTS, InventoryTabs.PETS, InventoryTabs.BADGES ]); useEffect(() => { diff --git a/src/views/inventory/tabs-content/InventoryTabsContentView.tsx b/src/views/inventory/tabs-content/InventoryTabsContentView.tsx index cc19ea70..dfcea8fb 100644 --- a/src/views/inventory/tabs-content/InventoryTabsContentView.tsx +++ b/src/views/inventory/tabs-content/InventoryTabsContentView.tsx @@ -13,10 +13,10 @@ export const InventoryTabsContentView: FC = props return (
- { inventoryContext && inventoryContext.currentTab && inventoryContext.currentTab === InventoryTabs.FURNITURE } - { inventoryContext && inventoryContext.currentTab && inventoryContext.currentTab === InventoryTabs.BOTS } - { inventoryContext && inventoryContext.currentTab && inventoryContext.currentTab === InventoryTabs.PETS } - { inventoryContext && inventoryContext.currentTab && inventoryContext.currentTab === InventoryTabs.BADGES } + { inventoryContext && inventoryContext.currentTab && inventoryContext.currentTab === InventoryTabs.FURNITURE && } + { inventoryContext && inventoryContext.currentTab && inventoryContext.currentTab === InventoryTabs.BOTS && } + { inventoryContext && inventoryContext.currentTab && inventoryContext.currentTab === InventoryTabs.PETS && } + { inventoryContext && inventoryContext.currentTab && inventoryContext.currentTab === InventoryTabs.BADGES && }
); } diff --git a/src/views/inventory/tabs-content/badges/InventoryTabBadgesView.tsx b/src/views/inventory/tabs-content/badges/InventoryTabBadgesView.tsx index f80047c6..04a7736b 100644 --- a/src/views/inventory/tabs-content/badges/InventoryTabBadgesView.tsx +++ b/src/views/inventory/tabs-content/badges/InventoryTabBadgesView.tsx @@ -7,6 +7,6 @@ export const InventoryTabBadgesView: FC = props => const inventoryContext = useContext(InventoryContext); return ( - <> + <>Badges content ); } diff --git a/src/views/inventory/tabs-content/bots/InventoryTabBotsView.tsx b/src/views/inventory/tabs-content/bots/InventoryTabBotsView.tsx index 9f7cc944..9a4e867e 100644 --- a/src/views/inventory/tabs-content/bots/InventoryTabBotsView.tsx +++ b/src/views/inventory/tabs-content/bots/InventoryTabBotsView.tsx @@ -7,6 +7,6 @@ export const InventoryTabBotsView: FC = props => const inventoryContext = useContext(InventoryContext); return ( - <> + <>Bots content ); } diff --git a/src/views/inventory/tabs-content/furniture/InventoryTabFurnitureView.tsx b/src/views/inventory/tabs-content/furniture/InventoryTabFurnitureView.tsx index 250c8141..0b293cc3 100644 --- a/src/views/inventory/tabs-content/furniture/InventoryTabFurnitureView.tsx +++ b/src/views/inventory/tabs-content/furniture/InventoryTabFurnitureView.tsx @@ -7,6 +7,6 @@ export const InventoryTabFurnitureView: FC = pro const inventoryContext = useContext(InventoryContext); return ( - <> + <>Furniture content ); } diff --git a/src/views/inventory/tabs-content/pets/InventoryTabPetsView.tsx b/src/views/inventory/tabs-content/pets/InventoryTabPetsView.tsx index beeb28de..8247d1fa 100644 --- a/src/views/inventory/tabs-content/pets/InventoryTabPetsView.tsx +++ b/src/views/inventory/tabs-content/pets/InventoryTabPetsView.tsx @@ -7,6 +7,6 @@ export const InventoryTabPetsView: FC = props => const inventoryContext = useContext(InventoryContext); return ( - <> + <>Pets content ); }