This repository was archived by the owner on Feb 8, 2025. It is now read-only.
Commit b0caf57 1 parent 056d8cf commit b0caf57 Copy full SHA for b0caf57
File tree 1 file changed +19
-21
lines changed
app/src/app/(nav)/[account]/settings
1 file changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -50,28 +50,26 @@ export default function AccountDetails() {
50
50
< Pane flex >
51
51
< Appbar mode = "large" headline = "Account details" />
52
52
53
- < Surface style = { styles . surface } >
54
- < View style = { styles . fields } >
55
- < AccountNameFormField name = "name" control = { control } required />
56
- </ View >
53
+ < View style = { styles . fields } >
54
+ < AccountNameFormField name = "name" control = { control } required />
55
+ </ View >
57
56
58
- < Actions >
59
- < FormSubmitButton
60
- mode = "contained"
61
- requireChanges
62
- control = { control }
63
- onPress = { handleSubmit ( async ( input ) => {
64
- await update (
65
- { account, name : input . name } ,
66
- { optimisticResponse : { updateAccount : { id : a . id , name : input . name } } } ,
67
- ) ;
68
- reset ( input ) ;
69
- } ) }
70
- >
71
- Update
72
- </ FormSubmitButton >
73
- </ Actions >
74
- </ Surface >
57
+ < Actions >
58
+ < FormSubmitButton
59
+ mode = "contained"
60
+ requireChanges
61
+ control = { control }
62
+ onPress = { handleSubmit ( async ( input ) => {
63
+ await update (
64
+ { account, name : input . name } ,
65
+ { optimisticResponse : { updateAccount : { id : a . id , name : input . name } } } ,
66
+ ) ;
67
+ reset ( input ) ;
68
+ } ) }
69
+ >
70
+ Update
71
+ </ FormSubmitButton >
72
+ </ Actions >
75
73
</ Pane >
76
74
) ;
77
75
}
You can’t perform that action at this time.
0 commit comments