Refactor FeedbackPage component: Update props handling to ensure params are resolved as a Promise, aligning with Next.js 15 requirements and improving code clarity.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m38s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m38s
This commit is contained in:
@@ -4,14 +4,13 @@ import { getBackgroundImage } from "@/lib/preferences";
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
interface FeedbackPageProps {
|
||||
params: {
|
||||
params: Promise<{
|
||||
eventId: string;
|
||||
};
|
||||
}>;
|
||||
}
|
||||
|
||||
export default async function FeedbackPage({
|
||||
params: _params,
|
||||
}: FeedbackPageProps) {
|
||||
export default async function FeedbackPage({ params }: FeedbackPageProps) {
|
||||
await params; // Ensure params are resolved (Next.js 15 requirement)
|
||||
const backgroundImage = await getBackgroundImage("home", "/got-2.jpg");
|
||||
|
||||
return <FeedbackPageClient backgroundImage={backgroundImage} />;
|
||||
|
||||
Reference in New Issue
Block a user