@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.
@@ -15,7 +15,7 @@ export const useContactForm = ({ initialType = 'General Feedback', onClick, }) =
15
15
  return;
16
16
  }
17
17
  onClick({
18
- type: formType,
18
+ category: formType,
19
19
  message: formMessage,
20
20
  });
21
21
  setFormMessage('');
@@ -1,5 +1,5 @@
1
1
  export type FeedbackFormProps = {
2
- type: 'General Feedback' | 'Bug' | 'Account Related' | 'Feature Request';
2
+ category: 'General Feedback' | 'Bug' | 'Account Related' | 'Feature Request';
3
3
  message: string;
4
4
  };
5
5
  export interface ContactFormI {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.6.4",
3
+ "version": "2.6.5",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -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) => setFormType(form as string)
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
- type: formType as FeedbackFormProps['type'],
32
+ category: formType as FeedbackFormProps['category'],
32
33
  message: formMessage,
33
34
  })
34
35
  setFormMessage('')
@@ -1,5 +1,5 @@
1
1
  export type FeedbackFormProps = {
2
- type: 'General Feedback' | 'Bug' | 'Account Related' | 'Feature Request'
2
+ category: 'General Feedback' | 'Bug' | 'Account Related' | 'Feature Request'
3
3
  message: string
4
4
  }
5
5
  export interface ContactFormI {