Refactor marketplace components to use hooks and context

- Converted ItemPage from a class component to a functional component using hooks for state management.
- Introduced MarketplaceContext for managing marketplace-related state and actions.
- Created custom hooks: useMarketplaceData for fetching and sorting marketplace items, useMarketplaceInstall for handling installation and uninstallation of items, and useMarketplaceNavigation for managing navigation within the marketplace.
- Implemented BrowsePage and CollectionPage components to display items and collections with improved structure and functionality.
- Enhanced error handling and loading states across the marketplace features.
This commit is contained in:
alexsparkes
2025-11-03 14:26:12 +00:00
parent 59824eb6ef
commit 2c376c7506
9 changed files with 1108 additions and 1038 deletions

View File

@@ -299,7 +299,7 @@
border-radius: 12px;
box-shadow: 0 5px 25px black;
aspect-ratio: 1 / 1;
object-fit: contain;
object-fit: cover;
}
.divider {