Skip to content

Commit

Permalink
deleted generateStaticParams function
Browse files Browse the repository at this point in the history
  • Loading branch information
nkanchinadam committed Sep 18, 2024
1 parent 230a15e commit d2e3e22
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/app/user/[userId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import { User } from "@/types/user-types";
import StudentInfoPage from "./StudentInfoPage";
import { getAllUsers } from "@/lib/firebase/database/users";

export async function generateStaticParams() {
const users = await getAllUsers();
return users.map((user: User) => ({ userId: user.id || 'bruh' }));
}

export default function StudentInfoPageWrapper({ params }: { params: { userId: string }}) {
return <StudentInfoPage params={params} />
Expand Down

0 comments on commit d2e3e22

Please sign in to comment.