-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13df0c3
commit e1d67be
Showing
3 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
"use client" | ||
"use client"; | ||
|
||
import OrderBook from '@/components/landing/Orderbook'; | ||
import { useParams } from 'next/navigation' | ||
import OrderBook from "@/components/landing/Orderbook"; | ||
import { useParams } from "next/navigation"; | ||
/* | ||
TODO: | ||
1. server actiosn to fetch the event from the event id (not sure but for now). | ||
2. Add sources of truth. | ||
3. Add event details like name and all. | ||
*/ | ||
export default function Page() { | ||
const {id} = useParams() | ||
const { id } = useParams(); | ||
console.log(id); | ||
const eventId = Array.isArray(id) ? id[id.length - 1] : id; | ||
|
||
|
||
if (!eventId) { | ||
return <div>Error: Event ID not found</div>; | ||
} | ||
return <div> | ||
<OrderBook eventId = {eventId}/> | ||
</div> | ||
} | ||
return ( | ||
<div> | ||
<OrderBook eventId={eventId} /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters