You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pages/form/[form]/index.tsx
+76-6
Original file line number
Diff line number
Diff line change
@@ -25,17 +25,23 @@ import { yupResolver } from "@hookform/resolvers/yup"
25
25
importsdk,{Project}from"@stackblitz/sdk"
26
26
importhljsfrom"highlight.js"
27
27
import{
28
+
Calendar,
29
+
CircleDot,
28
30
Eye,
29
31
EyeOff,
30
32
FileCog,
31
33
FileQuestion,
32
34
Heart,
33
35
LinkIcon,
36
+
List,
37
+
ListChecks,
34
38
Loader2,
35
39
MessageSquare,
36
40
Plus,
41
+
Save,
37
42
Send,
38
43
Settings,
44
+
Type,
39
45
User,
40
46
View,
41
47
}from"lucide-react"
@@ -68,6 +74,7 @@ import {
68
74
Dialog,
69
75
DialogContent,
70
76
DialogDescription,
77
+
DialogFooter,
71
78
DialogHeader,
72
79
DialogTrigger,
73
80
}from"@/components/ui/dialog"
@@ -149,6 +156,8 @@ export default function FormPage() {
149
156
})
150
157
}
151
158
159
+
// fonction qui prend en param un text et fonction de cela ajoute une <div></div> dans la div #questions - avec un switch case on regarde la valeur du text si c'est "input" on ajoute une div avec un input, si c'est "textarea" on ajoute une div avec un textarea etc...
160
+
152
161
return(
153
162
<Layout>
154
163
<Head>
@@ -192,18 +201,79 @@ export default function FormPage() {
0 commit comments