We need to implement a new "Trending" section that displays cards for today's trending movies fetched from the TMDB API. This section should include a toggle switch that allows users to switch between "Today" and "This Week" trending movies. When the switch is toggled, the section should re-fetch and update the displayed movies accordingly.
Requirements:
Create a section titled "Trending" that displays movie cards.
Fetch today's trending movies from the TMDB API.
Include a toggle switch with two options: "Today" and "This Week".
When the user switches to "This Week", re-fetch the trending movies for the week and update the display.
Ensure the design is responsive and visually appealing.
Tasks:
Set up the API integration to fetch trending movies from TMDB.
Implement the UI for the trending section with movie cards.
Add the toggle switch functionality.
Test the re-fetching of movies on toggle switch change.
Issue: Design Trending Section
Description:
We need to implement a new "Trending" section that displays cards for today's trending movies fetched from the TMDB API. This section should include a toggle switch that allows users to switch between "Today" and "This Week" trending movies. When the switch is toggled, the section should re-fetch and update the displayed movies accordingly.
Requirements:
Tasks: