Closed kacpergumieniuk closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
market-frontend | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 14, 2024 9:11am |
The recent updates focus on refactoring components within the Market and Trading Hub sections. Modal handling logic is removed from Market.tsx, and state management enhancements are introduced in TradingHubAggregatedPosition.tsx. The Navbar's functionality is streamlined by eliminating a specific market selection function. Overall, these changes aim to simplify UI interactions and improve state handling.
File Path | Change Summary |
---|---|
components/Market/Market.tsx |
Refactored market processing logic, removed modal handling, and cleaned up unused code. |
components/Market/TradingHub/TradingHubPositions/... |
Imported state management atoms, added state management for selectedMarketId and tradingHubState . |
components/Navbar/Navbar.tsx |
Removed openTrumpOrBidenMarket function and replaced its button with a static image display. |
sequenceDiagram
participant User
participant MarketComponent
participant TradingHubComponent
participant NavbarComponent
User->>MarketComponent: Selects Election Market
MarketComponent->>MarketComponent: Filter & Select Random Market
MarketComponent->>User: Update Market ID and URL
User->>TradingHubComponent: Open Chart
TradingHubComponent->>TradingHubComponent: Handle Open Chart
TradingHubComponent->>User: Display Chart
User->>NavbarComponent: Loads Navbar
NavbarComponent->>NavbarComponent: Display Static Image
In the Market, changes flow, Modals no longer steal the show. State is managed, clean and bright, Charts now open with delight. Navbar’s buttons take a rest, Static images do their best. Code refined, a smoother flight, Trading clear, and markets light.
(\ /)
( . .)
(")(")
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Refactor
New Features
UI Changes