Closed ManyRios closed 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bitcoinpokertour | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 17, 2024 7:42am |
[!WARNING]
Review failed
The pull request is closed.
The updates include adding a dependency (moment.js
), creating multiple new functional components (Bitcoinguide
, Contact
, Promotions
, DateCard
), and refactoring the Schedule
page to dynamically fetch and display event data using the getEvents
function. Additionally, the Menu
component was updated to use centralized navigation constants.
File | Change Summary |
---|---|
package.json |
Added moment dependency. |
src/app/bitcoinguide/page.tsx |
Added new Bitcoinguide functional component. |
src/app/contact/page.tsx |
Added new Contact functional component. |
src/app/promotions/page.tsx |
Added new Promotions functional component. |
src/app/schedule/page.tsx |
Updated to fetch and display event data dynamically, added Dates component for formatting dates. Added moment import. |
src/components/ui/DateCard.tsx |
Added new DateCard functional component. |
src/components/ui/menu.tsx |
Updated Menu component to use centralized navigation constants and refactored navigation item rendering. |
src/constansts/constants.ts |
Introduced a new navigation constant array for menu links. |
src/lib/utils.ts |
Added getEvents function to fetch events data. |
sequenceDiagram
participant User
participant SchedulePage
participant API as External API
User->>SchedulePage: Access Schedule Page
SchedulePage->>API: Fetch events data (getEvents)
API-->>SchedulePage: Return events data
SchedulePage-->>User: Render events in table format
Objective | Addressed | Explanation |
---|---|---|
Change events to schedule and call the API [#4] | ✅ | |
Remove the footer [#4] | ❓ | No information on footer removal is provided. |
In the code, new pages bloom, Like stars that chase away the gloom. With moments parsed and dates so grand, Events and schedules hand in hand. Now, menus navigate with ease, And all is set to truly please. 🌟
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?
Closes https://github.com/bitcoinbrisbane/bitcoinpokertour/issues/4
New Pages and Routes
Summary by CodeRabbit
New Features
DateCard
component.Refactor
Menu
component to utilize these for rendering navigation links.Chores
moment
package dependency for date formatting.New Utility
getEvents
function to fetch event data asynchronously.