File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
site/src/pages/UserSettingsPage/AccountPage Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export const Loading: Story = {
26
26
isLoading : true ,
27
27
} ,
28
28
} ;
29
+
29
30
export const WithError : Story = {
30
31
args : {
31
32
updateProfileError : mockApiError ( {
@@ -42,3 +43,9 @@ export const WithError: Story = {
42
43
} ,
43
44
} ,
44
45
} ;
46
+
47
+ export const Editable : Story = {
48
+ args : {
49
+ editable : true ,
50
+ } ,
51
+ } ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const Language = {
21
21
22
22
const validationSchema = Yup . object ( {
23
23
username : nameValidator ( Language . usernameLabel ) ,
24
+ name : Yup . string ( ) ,
24
25
} ) ;
25
26
26
27
export interface AccountFormProps {
@@ -75,13 +76,11 @@ export const AccountForm: FC<AccountFormProps> = ({
75
76
/>
76
77
< TextField
77
78
{ ...getFieldHelpers ( "name" ) }
79
+ fullWidth
78
80
onBlur = { ( e ) => {
79
81
e . target . value = e . target . value . trim ( ) ;
80
82
form . handleChange ( e ) ;
81
83
} }
82
- aria-disabled = { ! editable }
83
- disabled = { ! editable }
84
- fullWidth
85
84
label = { Language . nameLabel }
86
85
helperText = 'The human-readable name is optional and can be accessed in a template via the "data.coder_workspace_owner.me.full_name" property.'
87
86
/>
You can’t perform that action at this time.
0 commit comments