V 1.0.0 erste sauber lauffähige Version

This commit is contained in:
rxf
2025-10-29 14:01:16 +01:00
parent 8fb01360be
commit 4aa6ab3eb5
5 changed files with 206 additions and 78 deletions

View File

@@ -6,7 +6,6 @@ import { createContext, useContext, useState } from 'react'
const FormContext = createContext()
export function FormProvider({ children }) {
console.log('🚀 FormProvider initialisiert')
const [formData, setFormData] = useState({
stattgefunden: '',
@@ -20,19 +19,16 @@ export function FormProvider({ children }) {
})
const updateFormData = (field, value) => {
console.log('📝 FormContext UPDATE:', field, '=', value)
setFormData(prev => {
const newData = {
...prev,
[field]: value
}
console.log('📊 FormContext NEU:', newData)
return newData
})
}
const resetFormData = () => {
console.log('🔄 FormContext RESET')
setFormData({
stattgefunden: '',