Skip to content

Commit

Permalink
chore(repo): Add <OrganizationList/> to nextjs playground (#2083)
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef authored Nov 8, 2023
1 parent 267d950 commit 4ba666d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/pretty-singers-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
10 changes: 10 additions & 0 deletions playground/nextjs/app/app-dir/discover/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { OrganizationList } from '@clerk/nextjs';

export default function Page() {
return (
<OrganizationList
afterSelectPersonalUrl='/app-dir/user'
afterSelectOrganizationUrl='/app-dir/organization'
/>
);
}
18 changes: 18 additions & 0 deletions playground/nextjs/pages/discover/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { OrganizationList } from '@clerk/nextjs';
import type { NextPage } from 'next';
import React from 'react';

const Discover: NextPage = () => {
return (
<div
style={{ display: 'flex', flexDirection: 'column', gap: '2rem', justifyContent: 'center', alignItems: 'center' }}
>
<OrganizationList
afterSelectPersonalUrl='/user/:id'
afterSelectOrganizationUrl='/organization/:id'
/>
</div>
);
};

export default Discover;

0 comments on commit 4ba666d

Please sign in to comment.