File tree Expand file tree Collapse file tree 2 files changed +22
-31
lines changed
src/app/questions/[quesId]/[quesName]/edit Expand file tree Collapse file tree 2 files changed +22
-31
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,7 @@ import type { NextConfig } from "next";
2
2
3
3
const nextConfig : NextConfig = {
4
4
/* config options here */
5
- typescript : {
6
- // !! WARN !!
7
- // Dangerously allow production builds to successfully complete even if
8
- // your project has type errors.
9
- // !! WARN !!
10
- ignoreBuildErrors : true ,
11
- } ,
12
- eslint : {
13
- // Warning: This allows production builds to successfully complete even if
14
- // your project has ESLint errors.
15
- ignoreDuringBuilds : true ,
16
- } ,
5
+
17
6
} ;
18
7
19
8
export default nextConfig ;
Original file line number Diff line number Diff line change @@ -4,26 +4,28 @@ import React from "react";
4
4
import EditQues from "./EditQues" ;
5
5
import { Particles } from "@/components/magicui/particles" ;
6
6
7
- // { params: { quesId: string; quesName: string } }
7
+ type PageProps = {
8
+ params : Promise < { quesId : string ; quesName : string } > ;
9
+ } ;
8
10
9
- const Page = async ( { params } : { params : { quesId : string ; quesName : string } } ) => {
10
- const question = await databases . getDocument ( db , questionCollection , params . quesId ) ;
11
+ const Page = async ( { params } : PageProps ) => {
12
+ const { quesId } = await params ;
13
+ const question = await databases . getDocument ( db , questionCollection , quesId ) ;
11
14
12
- return (
13
- < div >
14
- < Particles
15
- className = "fixed inset-0 h-full w-full"
16
- quantity = { 500 }
17
- ease = { 100 }
18
- color = "#ffffff"
19
- refresh
20
- />
21
- < div className = "flex justify-center items-center" >
22
- < EditQues question = { question } />
23
- </ div >
24
- </ div >
25
-
26
- ) ;
15
+ return (
16
+ < div >
17
+ < Particles
18
+ className = "fixed inset-0 h-full w-full"
19
+ quantity = { 500 }
20
+ ease = { 100 }
21
+ color = "#ffffff"
22
+ refresh
23
+ />
24
+ < div className = "flex justify-center items-center" >
25
+ < EditQues question = { question } />
26
+ </ div >
27
+ </ div >
28
+ ) ;
27
29
} ;
28
30
29
- export default Page ;
31
+ export default Page ;
You can’t perform that action at this time.
0 commit comments