Skip to content

Commit

Permalink
fix(*): Fix retheme deployment preview template (#2263)
Browse files Browse the repository at this point in the history
  • Loading branch information
anagstef authored Dec 5, 2023
1 parent 2e77cd7 commit 608f9a5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion playground/nextjs/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ const AppBar = (props: AppBarProps) => {
hidePersonal
afterLeaveOrganizationUrl={'https://www.google.com'}
/>
<OrganizationSwitcher organizationProfileMode={'navigation'} />
<OrganizationSwitcher
organizationProfileMode={'navigation'}
organizationProfileUrl={'/organization'}
/>
<Link href={'/'}>
<h2>Nextjs Playground</h2>
</Link>
Expand Down
4 changes: 2 additions & 2 deletions playground/nextjs/pages/api/sendEmail.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { NextApiRequest, NextApiResponse } from 'next';
import { getAuth, clerkClient } from '@clerk/nextjs/server';
import { clerkClient, getAuth } from '@clerk/nextjs/server';

export default async function handler(req: NextApiRequest, res: NextApiResponse) {
const { userId } = await getAuth(req);
if (!userId) return res.status(401);

const user = await clerkClient.users.getUser(userId);
const email = user.primaryEmailAddressId;
const email = user.data?.primaryEmailAddressId;

if (!email) return res.status(422).json({ error: 'primaryEmailAddress is required!' });

Expand Down
4 changes: 2 additions & 2 deletions playground/nextjs/pages/session-examples/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WithSession, withSession, WithSessionProp, useSession } from '@clerk/nextjs';
import { useSession, withSession, WithSession, WithSessionProp } from '@clerk/nextjs';
import { PublicUserData } from '@clerk/types';
import type { NextPage } from 'next';
import React from 'react';
Expand Down Expand Up @@ -49,7 +49,7 @@ const SessionExamplesPage: NextPage = () => {
<PublicMetadataWithHook />
<PublicMetadataClassHOC />
<PublicMetadataFnHOC />
<PublicMetadataFaaC />
{/*<PublicMetadataFaaC />*/}
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion playground/nextjs/pages/user-examples/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const UserExamplesPage: NextPage = () => {
<GreetingWithHook />
<GreetingClassHOC />
<GreetingFnHOC greeting={'Ciao'} />
<GreetingFaaC />
{/*<GreetingFaaC />*/}
</div>
);
};
Expand Down

0 comments on commit 608f9a5

Please sign in to comment.