@homefile/components-v2 2.6.4 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -15,7 +15,8 @@ export const useContactForm = ({
|
|
|
15
15
|
const [formMessage, setFormMessage] = useState('')
|
|
16
16
|
const [errorMessage, setErrorMessage] = useState('')
|
|
17
17
|
|
|
18
|
-
const handleTypeChange = (form: string | SelectItemI) =>
|
|
18
|
+
const handleTypeChange = (form: string | SelectItemI) =>
|
|
19
|
+
setFormType(form as string)
|
|
19
20
|
|
|
20
21
|
const handleMessageChange = (event: ChangeEvent<{ value: string }>) => {
|
|
21
22
|
setFormMessage(event.target.value)
|
|
@@ -28,7 +29,7 @@ export const useContactForm = ({
|
|
|
28
29
|
return
|
|
29
30
|
}
|
|
30
31
|
onClick({
|
|
31
|
-
|
|
32
|
+
category: formType as FeedbackFormProps['category'],
|
|
32
33
|
message: formMessage,
|
|
33
34
|
})
|
|
34
35
|
setFormMessage('')
|