@@ -118,7 +118,7 @@ class AddCatalogPriceFormView extends React.PureComponent {
118
118
}
119
119
}
120
120
render ( ) {
121
- const { handleSubmit, hasServerError, handleChangeCatalog, handleChangePrice, validationErrors, isDisabled, catalog} = this . props ;
121
+ const { handleSubmit, hasServerError, handleChangeCatalog, handleChangePrice, validationErrors, isDisabled, catalog, l10n } = this . props ;
122
122
const hasValidationErrors = validationErrors . length > 0 ;
123
123
const [ currencySymbol , currencyName ] = this . getCurrencyByCatalogName ( catalog ) ;
124
124
return (
@@ -127,42 +127,30 @@ class AddCatalogPriceFormView extends React.PureComponent {
127
127
< div
128
128
id = "add-catalog-price-failed-msg"
129
129
className = { `alert alert-danger text-center col-sm-8 col-sm-offset-2 ${ hasServerError ? '' : 'hidden' } ` } >
130
- { this . props . l10n [ 't_server_error' ] || 'Server error' }
130
+ { l10n [ 't_server_error' ] || 'Server error' }
131
131
</ div >
132
132
< div className = "form-group form-group-sm" >
133
133
< label className = "control-label col-sm-3" >
134
- { this . props . l10n [ 't_catalog' ] || 'Catalog' }
134
+ { l10n [ 't_catalog' ] || 'Catalog' }
135
135
</ label >
136
136
< div className = "col-sm-6" >
137
137
< select
138
138
id = "catalog-name"
139
139
name = "catalogName"
140
140
className = "form-control"
141
141
onChange = { handleChangeCatalog } >
142
- < option value = "michel" >
143
- { this . props . l10n [ 't_michel' ] || 'Michel' }
144
- </ option >
145
- < option value = "scott" >
146
- { this . props . l10n [ 't_scott' ] || 'Scott' }
147
- </ option >
148
- < option value = "yvert" >
149
- { this . props . l10n [ 't_yvert' ] || 'Yvert et Tellier' }
150
- </ option >
151
- < option value = "gibbons" >
152
- { this . props . l10n [ 't_sg' ] || 'Stanley Gibbons' }
153
- </ option >
154
- < option value = "solovyov" >
155
- { this . props . l10n [ 't_solovyov' ] || 'Solovyov' }
156
- </ option >
157
- < option value = "zagorski" >
158
- { this . props . l10n [ 't_zagorski' ] || 'Zagorski' }
159
- </ option >
142
+ < option value = "michel" > { l10n [ 't_michel' ] || 'Michel' } </ option >
143
+ < option value = "scott" > { l10n [ 't_scott' ] || 'Scott' } </ option >
144
+ < option value = "yvert" > { l10n [ 't_yvert' ] || 'Yvert et Tellier' } </ option >
145
+ < option value = "gibbons" > { l10n [ 't_sg' ] || 'Stanley Gibbons' } </ option >
146
+ < option value = "solovyov" > { l10n [ 't_solovyov' ] || 'Solovyov' } </ option >
147
+ < option value = "zagorski" > { l10n [ 't_zagorski' ] || 'Zagorski' } </ option >
160
148
</ select >
161
149
</ div >
162
150
</ div >
163
151
< div className = "form-group form-group-sm" >
164
152
< label className = "control-label col-sm-3" >
165
- { this . props . l10n [ 't_price' ] || 'Price' }
153
+ { l10n [ 't_price' ] || 'Price' }
166
154
</ label >
167
155
< div className = "col-sm-3" >
168
156
< div className = "input-group" >
@@ -188,7 +176,7 @@ class AddCatalogPriceFormView extends React.PureComponent {
188
176
type = "submit"
189
177
className = "btn btn-primary btn-sm"
190
178
disabled = { isDisabled } >
191
- { this . props . l10n [ 't_add' ] || 'Add' }
179
+ { l10n [ 't_add' ] || 'Add' }
192
180
</ button >
193
181
</ div >
194
182
</ form >
0 commit comments