Skip to content

Commit

Permalink
Running npx @next/codemod@canary next-async-request-api (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
izaaklauer authored Oct 31, 2024
1 parent 2c50f66 commit 25327bc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/sync-org-with-url/src/app/orgs/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { auth } from '@clerk/nextjs/server';
import {OrganizationList} from "@clerk/nextjs";

export default async function Home({params}:{
params: { slug: string }
}) {
export default async function Home(
props:{
params: Promise<{ slug: string }>
}
) {
const params = await props.params;
const authObject = await auth();
const orgSlug = authObject.orgSlug

Expand Down

0 comments on commit 25327bc

Please sign in to comment.