File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useRouter } from "next/router" ;
22
3+ import TagList from "@/components/ui/tag-list" ;
34import { useEvent } from "@/hooks/event" ;
45
56import DockLayout from "../layouts/docklayout" ;
@@ -21,20 +22,7 @@ export default function EventDetailsPage() {
2122 return (
2223 < >
2324 < DockLayout >
24- < div >
25- < h1 > { event . event_name } </ h1 >
26- < div className = "flex flex-wrap gap-2" >
27- { event . tags . map ( ( tag ) => (
28- < span
29- key = { tag . id }
30- className = "rounded-full bg-muted px-3 py-1 text-sm"
31- >
32- { tag . name }
33- </ span >
34- ) ) }
35- </ div >
36- < p > { event . event_description } </ p >
37- </ div >
25+ < TagList tags = { event . tags } > </ TagList >
3826 </ DockLayout >
3927 </ >
4028 ) ;
Original file line number Diff line number Diff line change 11import Link from "next/link" ;
22
3+ import TagList from "@/components/ui/tag-list" ;
34import { useEvents } from "@/hooks/events" ;
45
56import { Button } from "../components/ui/button" ;
@@ -30,7 +31,10 @@ export default function Home() {
3031 </ CardHeader >
3132
3233 < CardContent >
33- < p > { event . event_description } </ p >
34+ < TagList tags = { event . tags } > </ TagList >
35+ < p className = "line-clamp-3 text-muted-foreground" >
36+ { event . event_description }
37+ </ p >
3438 </ CardContent >
3539
3640 < CardFooter className = "flex-end flex-row justify-end gap-2" >
You can’t perform that action at this time.
0 commit comments