$negBl*151aROpWgW9$mHSr2@!u(_32v#UgF*6jG%x|m5HUEq>PIl
z8lX$AkU(_nMM`6zf$56AeI
z&K^2yIfN`v3p{
diff --git a/dashboard/package.json b/dashboard/package.json
index 569f906..4e18553 100644
--- a/dashboard/package.json
+++ b/dashboard/package.json
@@ -43,7 +43,8 @@
"tailwindcss-animate": "^1.0.7",
"ua-parser-js": "^2.0.0",
"usehooks-ts": "^3.1.0",
- "zod": "^3.22.4"
+ "zod": "^3.22.4",
+ "zod_utilz": "^0.8.3"
},
"devDependencies": {
"@types/node": "^22.9.3",
--
2.45.3
From c99618f73751e2562065bced7131218f3b10219e Mon Sep 17 00:00:00 2001
From: Markus Thielker
Date: Sat, 28 Dec 2024 23:43:13 +0100
Subject: [PATCH 11/51] NORY-47: create new dynamic-form component
---
dashboard/src/components/dynamic-form.tsx | 99 +++++++++++++++++++++++
1 file changed, 99 insertions(+)
create mode 100644 dashboard/src/components/dynamic-form.tsx
diff --git a/dashboard/src/components/dynamic-form.tsx b/dashboard/src/components/dynamic-form.tsx
new file mode 100644
index 0000000..9020d46
--- /dev/null
+++ b/dashboard/src/components/dynamic-form.tsx
@@ -0,0 +1,99 @@
+'use client';
+
+import { FieldValues, Path, SubmitErrorHandler, SubmitHandler, UseFormReturn } from 'react-hook-form';
+import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel } from '@/components/ui/form';
+import { Input } from '@/components/ui/input';
+import { Button } from '@/components/ui/button';
+import React, { ReactNode } from 'react';
+import { Checkbox } from '@/components/ui/checkbox';
+import { KratosSchemaProperties } from '@/lib/forms/identity-form';
+
+interface DynamicFormProps {
+ children?: ReactNode,
+ form: UseFormReturn