Upgrade Clerk, Next.js, and React to latest versions + minor code changes

This commit is contained in:
Ahmad 2024-10-23 19:17:45 -04:00
parent a63270db0c
commit a89c9a9b02
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
31 changed files with 140 additions and 130 deletions

View file

@ -12,7 +12,7 @@ import { getAvailableCount } from '@/lib/org-limit';
import { checkSubscription } from '@/lib/subscription';
export const BoardList = async () => {
const { orgId } = auth();
const { orgId } = await auth();
if (!orgId) {
return redirect('/select-org');

View file

@ -6,7 +6,7 @@ import { ActivityItem } from '@/components/activity-item';
import { Skeleton } from '@/components/ui/skeleton';
export const ActivityList = async () => {
const { orgId } = auth();
const { orgId } = await auth();
if (!orgId) redirect('/select-org');

View file

@ -4,7 +4,7 @@ import { auth } from '@clerk/nextjs/server';
import { OrgControl } from './_components/org-control';
export async function generateMetadata() {
const { orgSlug } = auth();
const { orgSlug } = await auth();
return {
title: startCase(orgSlug ?? 'organization'),