@sikka/hawa 0.0.110 → 0.0.111
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/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/blocks/Account/UserProfileForm.tsx +3 -11
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import { HawaButton, HawaTextField } from "../../elements"
|
|
2
|
+
import { HawaButton, HawaPhoneInput, HawaTextField } from "../../elements"
|
|
3
3
|
import { Controller, FormProvider, useForm } from "react-hook-form"
|
|
4
4
|
import { HawaContainer } from "../../layout"
|
|
5
5
|
|
|
@@ -24,7 +24,7 @@ export const UserProfileForm: React.FunctionComponent<UserProfileFormTypes> = (
|
|
|
24
24
|
<HawaContainer>
|
|
25
25
|
{" "}
|
|
26
26
|
<FormProvider {...methods}>
|
|
27
|
-
<form onSubmit={handleSubmit(props.handleUpdateProfile)}>
|
|
27
|
+
<form onSubmit={handleSubmit((e) => props.handleUpdateProfile(e))}>
|
|
28
28
|
<Controller
|
|
29
29
|
control={control}
|
|
30
30
|
name="fullName"
|
|
@@ -43,15 +43,7 @@ export const UserProfileForm: React.FunctionComponent<UserProfileFormTypes> = (
|
|
|
43
43
|
<Controller
|
|
44
44
|
control={control}
|
|
45
45
|
name="phoneNumber"
|
|
46
|
-
render={({ field }) =>
|
|
47
|
-
<HawaTextField
|
|
48
|
-
width="full"
|
|
49
|
-
type="tel"
|
|
50
|
-
label="Phone Number"
|
|
51
|
-
placeholder="+966"
|
|
52
|
-
{...field}
|
|
53
|
-
/>
|
|
54
|
-
)}
|
|
46
|
+
render={({ field }) => <HawaPhoneInput label="Phone number" />}
|
|
55
47
|
/>
|
|
56
48
|
<Controller
|
|
57
49
|
control={control}
|