refaktor z obiektu danych

const onSubmit = (data: { propertyIdentification: string, stateName: string }) => updatePropertyIdentified(data)
Selfish Swan