@@ -136,64 +136,61 @@ class WorkspaceSettingsPage extends React.Component {
136
136
< WorkspacePageWithSections
137
137
headerText = { this . props . translate ( 'workspace.common.settings' ) }
138
138
route = { this . props . route }
139
+ footer = { (
140
+ < FixedFooter style = { [ styles . w100 ] } >
141
+ < Button
142
+ success
143
+ isLoading = { policy . isPolicyUpdating }
144
+ text = { this . props . translate ( 'workspace.editor.save' ) }
145
+ onPress = { this . submit }
146
+ pressOnEnter
147
+ />
148
+ </ FixedFooter >
149
+ ) }
139
150
>
140
151
{ hasVBA => (
141
- < >
142
- < View style = { [ styles . pageWrapper , styles . flex1 , styles . pRelative , styles . flexGrow1 ] } >
143
- < View style = { [ styles . w100 , styles . flexGrow1 ] } >
144
- < AvatarWithImagePicker
145
- isUploading = { policy . isAvatarUploading }
146
- avatarURL = { this . state . previewAvatarURL }
147
- size = { CONST . AVATAR_SIZE . LARGE }
148
- DefaultAvatar = { ( ) => (
149
- < Icon
150
- src = { Workspace }
151
- height = { 80 }
152
- width = { 80 }
153
- fill = { defaultTheme . iconSuccessFill }
154
- />
155
- ) }
156
- style = { [ styles . mb3 ] }
157
- anchorPosition = { { top : 172 , right : 18 } }
158
- isUsingDefaultAvatar = { ! this . state . previewAvatarURL }
159
- onImageSelected = { this . uploadAvatar }
160
- onImageRemoved = { this . removeAvatar }
161
- />
162
-
163
- < ExpensiTextInput
164
- label = { this . props . translate ( 'workspace.editor.nameInputLabel' ) }
165
- containerStyles = { [ styles . mt4 ] }
166
- onChangeText = { name => this . setState ( { name} ) }
167
- value = { this . state . name }
168
- hasError = { ! this . state . name . trim ( ) . length }
169
- errorText = { this . state . name . trim ( ) . length ? '' : this . props . translate ( 'workspace.editor.nameIsRequiredError' ) }
170
- />
171
-
172
- < View style = { [ styles . mt4 ] } >
173
- < ExpensiPicker
174
- label = { this . props . translate ( 'workspace.editor.currencyInputLabel' ) }
175
- onChange = { currency => this . setState ( { currency} ) }
176
- items = { this . getCurrencyItems ( ) }
177
- value = { this . state . currency }
178
- isDisabled = { hasVBA }
179
- />
180
- </ View >
181
- < Text style = { [ styles . textLabel , styles . colorMuted , styles . mt2 ] } >
182
- { this . props . translate ( 'workspace.editor.currencyInputHelpText' ) }
183
- </ Text >
184
- </ View >
185
-
186
- < FixedFooter style = { [ styles . w100 ] } >
187
- < Button
188
- success
189
- isLoading = { policy . isPolicyUpdating }
190
- text = { this . props . translate ( 'workspace.editor.save' ) }
191
- onPress = { this . submit }
192
- pressOnEnter
152
+ < View style = { [ styles . pageWrapper , styles . flex1 , styles . alignItemsStretch ] } >
153
+ < AvatarWithImagePicker
154
+ isUploading = { policy . isAvatarUploading }
155
+ avatarURL = { this . state . previewAvatarURL }
156
+ size = { CONST . AVATAR_SIZE . LARGE }
157
+ DefaultAvatar = { ( ) => (
158
+ < Icon
159
+ src = { Workspace }
160
+ height = { 80 }
161
+ width = { 80 }
162
+ fill = { defaultTheme . iconSuccessFill }
193
163
/>
194
- </ FixedFooter >
164
+ ) }
165
+ style = { [ styles . mb3 ] }
166
+ anchorPosition = { { top : 172 , right : 18 } }
167
+ isUsingDefaultAvatar = { ! this . state . previewAvatarURL }
168
+ onImageSelected = { this . uploadAvatar }
169
+ onImageRemoved = { this . removeAvatar }
170
+ />
171
+
172
+ < ExpensiTextInput
173
+ label = { this . props . translate ( 'workspace.editor.nameInputLabel' ) }
174
+ containerStyles = { [ styles . mt4 ] }
175
+ onChangeText = { name => this . setState ( { name} ) }
176
+ value = { this . state . name }
177
+ hasError = { ! this . state . name . trim ( ) . length }
178
+ errorText = { this . state . name . trim ( ) . length ? '' : this . props . translate ( 'workspace.editor.nameIsRequiredError' ) }
179
+ />
180
+
181
+ < View style = { [ styles . mt4 ] } >
182
+ < ExpensiPicker
183
+ label = { this . props . translate ( 'workspace.editor.currencyInputLabel' ) }
184
+ onChange = { currency => this . setState ( { currency} ) }
185
+ items = { this . getCurrencyItems ( ) }
186
+ value = { this . state . currency }
187
+ isDisabled = { hasVBA }
188
+ />
195
189
</ View >
196
- </ >
190
+ < Text style = { [ styles . textLabel , styles . colorMuted , styles . mt2 ] } >
191
+ { this . props . translate ( 'workspace.editor.currencyInputHelpText' ) }
192
+ </ Text >
193
+ </ View >
197
194
) }
198
195
</ WorkspacePageWithSections >
199
196
) ;
0 commit comments