Skip to content

Commit b10ec6c

Browse files
committed
Expand component test suite
1 parent f77669d commit b10ec6c

File tree

13 files changed

+138
-7
lines changed

13 files changed

+138
-7
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { CreateOrganization } from '@clerk/nextjs';
2+
3+
export default function Page() {
4+
return (
5+
<div>
6+
<CreateOrganization fallback={<>Loading create organization</>} />
7+
</div>
8+
);
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { OrganizationList } from '@clerk/nextjs';
2+
3+
export default function Page() {
4+
return (
5+
<div>
6+
<OrganizationList fallback={<>Loading organization list</>} />
7+
</div>
8+
);
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { OrganizationProfile } from '@clerk/nextjs';
2+
3+
export default function Page() {
4+
return (
5+
<div>
6+
<OrganizationProfile
7+
routing='hash'
8+
fallback={<>Loading organization profile</>}
9+
/>
10+
</div>
11+
);
12+
}

integration/templates/next-app-router/src/app/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import { SignedIn, SignedOut, SignIn, UserButton, Protect } from '@clerk/nextjs';
1+
import { SignedIn, SignedOut, SignIn, UserButton, Protect, OrganizationSwitcher } from '@clerk/nextjs';
22
import Link from 'next/link';
33
import { ClientId } from './client-id';
44

55
export default function Home() {
66
return (
77
<main>
88
<UserButton fallback={<>Loading user button</>} />
9+
<OrganizationSwitcher fallback={<>Loading organization switcher</>} />
910
<ClientId />
1011
<SignedIn>SignedIn</SignedIn>
1112
<SignedOut>SignedOut</SignedOut>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Waitlist } from '@clerk/nextjs';
2+
3+
export default function Page() {
4+
return (
5+
<div>
6+
<Waitlist fallback={<>Loading waitlist</>} />
7+
</div>
8+
);
9+
}

integration/templates/react-vite/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function App() {
66
return (
77
<main>
88
<UserButton afterSignOutUrl={'/'} />
9-
<OrganizationSwitcher />
9+
<OrganizationSwitcher fallback={<>Loading organization switcher</>} />
1010
<ClientId />
1111
<SignedOut>SignedOut</SignedOut>
1212
<SignedIn>SignedIn</SignedIn>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { CreateOrganization } from '@clerk/clerk-react';
2+
3+
export default function Page() {
4+
return (
5+
<div>
6+
<CreateOrganization fallback={<>Loading create organization</>} />
7+
</div>
8+
);
9+
}

integration/templates/react-vite/src/main.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import UserProfileCustom from './custom-user-profile';
1212
import UserButtonCustom from './custom-user-button';
1313
import UserButtonCustomTrigger from './custom-user-button-trigger';
1414
import UserButton from './user-button';
15+
import Waitlist from './waitlist';
16+
import OrganizationProfile from './organization-profile';
17+
import OrganizationList from './organization-list';
18+
import CreateOrganization from './create-organization';
1519

1620
const Root = () => {
1721
const navigate = useNavigate();
@@ -74,6 +78,22 @@ const router = createBrowserRouter([
7478
path: '/custom-user-button-trigger',
7579
element: <UserButtonCustomTrigger />,
7680
},
81+
{
82+
path: '/waitlist',
83+
element: <Waitlist />,
84+
},
85+
{
86+
path: '/organization-profile',
87+
element: <OrganizationProfile />,
88+
},
89+
{
90+
path: '/organization-list',
91+
element: <OrganizationList />,
92+
},
93+
{
94+
path: '/create-organization',
95+
element: <CreateOrganization />,
96+
},
7797
],
7898
},
7999
]);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { OrganizationList } from '@clerk/clerk-react';
2+
3+
export default function Page() {
4+
return (
5+
<div>
6+
<OrganizationList fallback={<>Loading organization list</>} />
7+
</div>
8+
);
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { OrganizationProfile } from '@clerk/clerk-react';
2+
3+
export default function Page() {
4+
return (
5+
<div>
6+
<OrganizationProfile
7+
routing='hash'
8+
fallback={<>Loading organization profile</>}
9+
/>
10+
</div>
11+
);
12+
}

0 commit comments

Comments
 (0)