diff --git a/apps/nextjs/src/app/aila/[id]/layout.tsx b/apps/nextjs/src/app/aila/[id]/layout.tsx index a31f4fe7f..89534d9e0 100644 --- a/apps/nextjs/src/app/aila/[id]/layout.tsx +++ b/apps/nextjs/src/app/aila/[id]/layout.tsx @@ -2,9 +2,7 @@ interface ChatLayoutProps { children: React.ReactNode; } -export default async function ChatLayout({ - children, -}: Readonly) { +export default function ChatLayout({ children }: Readonly) { return (
diff --git a/apps/nextjs/src/app/aila/help/page.tsx b/apps/nextjs/src/app/aila/help/page.tsx index d6598506f..a49d678c5 100644 --- a/apps/nextjs/src/app/aila/help/page.tsx +++ b/apps/nextjs/src/app/aila/help/page.tsx @@ -1,5 +1,5 @@ import Help from "."; -export default async function HelpPage() { +export default function HelpPage() { return ; } diff --git a/apps/nextjs/src/app/aila/page.tsx b/apps/nextjs/src/app/aila/page.tsx index e5d4e01a5..4d8e8e054 100644 --- a/apps/nextjs/src/app/aila/page.tsx +++ b/apps/nextjs/src/app/aila/page.tsx @@ -5,11 +5,11 @@ import { redirect } from "next/navigation"; import { ChatStart } from "@/components/AppComponents/Chat/chat-start"; import Layout from "@/components/AppComponents/Layout"; -export default async function IndexPage() { +export default function IndexPage() { const clerkAuthentication = auth(); const { userId }: { userId: string | null } = clerkAuthentication; if (!userId) { - redirect(`/sign-in?next=/aila`); + redirect("/sign-in?next=/aila"); } return ( diff --git a/apps/nextjs/src/app/faqs/page.tsx b/apps/nextjs/src/app/faqs/page.tsx index 43148a4c4..4a7701661 100644 --- a/apps/nextjs/src/app/faqs/page.tsx +++ b/apps/nextjs/src/app/faqs/page.tsx @@ -1,6 +1,6 @@ import FAQPage from "."; -const FAQ = async () => { +const FAQ = () => { return ; }; diff --git a/apps/nextjs/src/app/generations/page.tsx b/apps/nextjs/src/app/generations/page.tsx index 4d70f247d..718eb0df7 100644 --- a/apps/nextjs/src/app/generations/page.tsx +++ b/apps/nextjs/src/app/generations/page.tsx @@ -1,3 +1,3 @@ -export default async function GenerationsPage() { +export default function GenerationsPage() { return null; } diff --git a/apps/nextjs/src/app/legal/account-locked/page.tsx b/apps/nextjs/src/app/legal/account-locked/page.tsx index 5cb497153..d1f64fc61 100644 --- a/apps/nextjs/src/app/legal/account-locked/page.tsx +++ b/apps/nextjs/src/app/legal/account-locked/page.tsx @@ -1,5 +1,5 @@ import AccountLocked from "./account-locked"; -export default async function SuspendedPage() { +export default function SuspendedPage() { return ; } diff --git a/apps/nextjs/src/app/lesson-planner/page.tsx b/apps/nextjs/src/app/lesson-planner/page.tsx index 089e4c78c..d6cadf0fe 100644 --- a/apps/nextjs/src/app/lesson-planner/page.tsx +++ b/apps/nextjs/src/app/lesson-planner/page.tsx @@ -1,5 +1,5 @@ import LessonPlannerPage from "."; -export default async function LessonPlanner() { +export default function LessonPlanner() { return ; } diff --git a/apps/nextjs/src/app/lesson-planner/preview/page.tsx b/apps/nextjs/src/app/lesson-planner/preview/page.tsx index 466483d34..24a1db312 100644 --- a/apps/nextjs/src/app/lesson-planner/preview/page.tsx +++ b/apps/nextjs/src/app/lesson-planner/preview/page.tsx @@ -1,5 +1,5 @@ import PreviewRedirect from "./preview-redirect"; -export default async function PreviewRedirectPage() { +export default function PreviewRedirectPage() { return ; } diff --git a/apps/nextjs/src/app/quiz-designer/page.tsx b/apps/nextjs/src/app/quiz-designer/page.tsx index 33f6d834e..42876ecdc 100644 --- a/apps/nextjs/src/app/quiz-designer/page.tsx +++ b/apps/nextjs/src/app/quiz-designer/page.tsx @@ -1,5 +1,5 @@ import QuizDesignerPage from "./quiz-designer-page"; -export default async function QuizDesigner() { +export default function QuizDesigner() { return ; } diff --git a/apps/nextjs/src/app/quiz-designer/preview/page.tsx b/apps/nextjs/src/app/quiz-designer/preview/page.tsx index 466483d34..24a1db312 100644 --- a/apps/nextjs/src/app/quiz-designer/preview/page.tsx +++ b/apps/nextjs/src/app/quiz-designer/preview/page.tsx @@ -1,5 +1,5 @@ import PreviewRedirect from "./preview-redirect"; -export default async function PreviewRedirectPage() { +export default function PreviewRedirectPage() { return ; } diff --git a/apps/nextjs/src/app/test-support/clerk/page.tsx b/apps/nextjs/src/app/test-support/clerk/page.tsx index 6a01d80c2..d2d56463f 100644 --- a/apps/nextjs/src/app/test-support/clerk/page.tsx +++ b/apps/nextjs/src/app/test-support/clerk/page.tsx @@ -5,7 +5,7 @@ import { notFound } from "next/navigation"; * This is a minimal page that gives it access to a clerk instance */ -export default async function TestSupportSignIn() { +export default function TestSupportSignIn() { if ( process.env.NODE_ENV !== "development" && process.env.VERCEL_ENV !== "preview"