File tree 3 files changed +12
-12
lines changed 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 8
8
onChangeTrimmed ,
9
9
} from "../../utils/formUtils"
10
10
import { LoadingButton } from "../LoadingButton/LoadingButton"
11
- import { Stack } from "../Stack/Stack"
12
11
import { ErrorAlert } from "components/Alert/ErrorAlert"
12
+ import { Form , FormFields } from "components/Form/Form"
13
13
14
14
export interface AccountFormValues {
15
15
username : string
@@ -18,7 +18,7 @@ export interface AccountFormValues {
18
18
export const Language = {
19
19
usernameLabel : "Username" ,
20
20
emailLabel : "Email" ,
21
- updateSettings : "Update settings " ,
21
+ updateSettings : "Update account " ,
22
22
}
23
23
24
24
const validationSchema = Yup . object ( {
@@ -59,8 +59,8 @@ export const AccountForm: FC<React.PropsWithChildren<AccountFormProps>> = ({
59
59
60
60
return (
61
61
< >
62
- < form onSubmit = { form . handleSubmit } >
63
- < Stack >
62
+ < Form onSubmit = { form . handleSubmit } >
63
+ < FormFields >
64
64
{ Boolean ( updateProfileError ) && (
65
65
< ErrorAlert error = { updateProfileError } />
66
66
) }
@@ -91,8 +91,8 @@ export const AccountForm: FC<React.PropsWithChildren<AccountFormProps>> = ({
91
91
{ isLoading ? "" : Language . updateSettings }
92
92
</ LoadingButton >
93
93
</ div >
94
- </ Stack >
95
- </ form >
94
+ </ FormFields >
95
+ </ Form >
96
96
</ >
97
97
)
98
98
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const Section: SectionFC = ({
35
35
{ ( title || description ) && (
36
36
< div className = { styles . header } >
37
37
< div >
38
- { title && < Typography variant = "h4" > { title } </ Typography > }
38
+ { title && < Typography variant = "h4" sx = { { fontSize : 24 } } > { title } </ Typography > }
39
39
{ description && typeof description === "string" && (
40
40
< Typography className = { styles . description } >
41
41
{ description }
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { FC } from "react"
4
4
import * as Yup from "yup"
5
5
import { getFormHelpers } from "../../utils/formUtils"
6
6
import { LoadingButton } from "../LoadingButton/LoadingButton"
7
- import { Stack } from "../Stack/Stack"
8
7
import { ErrorAlert } from "components/Alert/ErrorAlert"
8
+ import { Form , FormFields } from "components/Form/Form"
9
9
10
10
interface SecurityFormValues {
11
11
old_password : string
@@ -70,8 +70,8 @@ export const SecurityForm: FC<SecurityFormProps> = ({
70
70
71
71
return (
72
72
< >
73
- < form onSubmit = { form . handleSubmit } >
74
- < Stack >
73
+ < Form onSubmit = { form . handleSubmit } >
74
+ < FormFields >
75
75
{ Boolean ( updateSecurityError ) && (
76
76
< ErrorAlert error = { updateSecurityError } />
77
77
) }
@@ -106,8 +106,8 @@ export const SecurityForm: FC<SecurityFormProps> = ({
106
106
{ isLoading ? "" : Language . updatePassword }
107
107
</ LoadingButton >
108
108
</ div >
109
- </ Stack >
110
- </ form >
109
+ </ FormFields >
110
+ </ Form >
111
111
</ >
112
112
)
113
113
}
You can’t perform that action at this time.
0 commit comments