File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1- // src/app/explore/page.tsx
21import { headers } from "next/headers" ;
32import { auth } from "@/lib/auth" ;
43import { db } from "@/db" ;
54import { courses } from "@/db/schema" ;
65import { desc } from "drizzle-orm" ;
7- import { ExploreCoursesClient } from ". /ExploreCoursesClient" ;
6+ import { ExploreCoursesClient } from "@/components /ExploreCoursesClient" ;
87
98export default async function ExplorePage ( ) {
109 const session = await auth . api . getSession ( {
@@ -19,7 +18,7 @@ export default async function ExplorePage() {
1918 . orderBy ( desc ( courses . createdAt ) ) ;
2019
2120 return (
22- < div className = "max-w-5xl mx-auto py-10 px-4 sm:px-6 lg:px-8 " >
21+ < div className = "max-w-6xl mx-auto py-10 px-4" >
2322 < ExploreCoursesClient
2423 courses = { allCourses . map ( ( c ) => ( {
2524 id : c . id ,
Original file line number Diff line number Diff line change 1- // src/app/courses/ExploreCoursesClient.tsx
21"use client" ;
32
43import { useMemo , useState } from "react" ;
You can’t perform that action at this time.
0 commit comments