Skip to content

Commit ea64601

Browse files
committed
nice work
1 parent 7e4d7aa commit ea64601

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/app/explore/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
// src/app/explore/page.tsx
21
import { headers } from "next/headers";
32
import { auth } from "@/lib/auth";
43
import { db } from "@/db";
54
import { courses } from "@/db/schema";
65
import { desc } from "drizzle-orm";
7-
import { ExploreCoursesClient } from "./ExploreCoursesClient";
6+
import { ExploreCoursesClient } from "@/components/ExploreCoursesClient";
87

98
export 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,

src/app/explore/ExploreCoursesClient.tsx renamed to src/components/ExploreCoursesClient.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// src/app/courses/ExploreCoursesClient.tsx
21
"use client";
32

43
import { useMemo, useState } from "react";

0 commit comments

Comments
 (0)