ein stück weiter - noch lange nicht fertig !

This commit is contained in:
rxf
2025-10-27 14:21:57 +01:00
parent e3af52a2a0
commit 5a4b4a1db1
11 changed files with 176 additions and 475 deletions

View File

@@ -1,12 +1,12 @@
import { useState } from 'react'
import { useFormData } from './FormContext.jsx'
import { useFormData } from '../FormContext'
export default function FandStattVer({left, right, onNext, isCompleted}) {
export default function FandStattVer({left, right, onNext}) {
const { formData, updateFormData } = useFormData()
const [auswahl, setAuswahl] = useState(formData.stattgefunden || '')
const handleOK = () => {
if(!auswahl) {
alert('Bitte ja/nein wäölen')
alert('Bitte ja/nein wählen')
return
}
updateFormData('stattgefunden', auswahl)