Skip to content

Commit 7bb91f0

Browse files
committed
Fix coding style.
1 parent 5ffa9ea commit 7bb91f0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/fields/ArrayField.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class ArrayField extends Component {
111111
const items = this.state.items.slice(0);
112112
const item = items.splice(index, 1)[0];
113113
items.splice(newIndex, 0, item);
114-
this.asyncSetState({ items }, { validate: true });
114+
this.asyncSetState({items}, {validate: true});
115115
};
116116
};
117117

@@ -341,24 +341,24 @@ class ArrayField extends Component {
341341
{
342342
hasToolbar ?
343343
<div className="col-xs-2 array-item-toolbox text-right">
344-
<div className="btn-group" style={{ display: "flex" }}>
345-
{ canMoveUp || canMoveDown ?
344+
<div className="btn-group" style={{display: "flex"}}>
345+
{canMoveUp || canMoveDown ?
346346
<button type="button" className="btn btn-default array-item-move-up"
347-
style={{ flex: 1, paddingLeft: 6, paddingRight: 6 }}
347+
style={{flex: 1, paddingLeft: 6, paddingRight: 6}}
348348
tabIndex="-1"
349349
disabled={disabled || readonly || !canMoveUp}
350350
onClick={this.onReorderClick(index, index - 1)}></button>
351351
: null}
352-
{ canMoveUp || canMoveDown ?
352+
{canMoveUp || canMoveDown ?
353353
<button type="button" className="btn btn-default array-item-move-down"
354-
style={{ flex: 1, paddingLeft: 6, paddingRight: 6 }}
354+
style={{flex: 1, paddingLeft: 6, paddingRight: 6}}
355355
tabIndex="-1"
356356
disabled={disabled || readonly || !canMoveDown}
357357
onClick={this.onReorderClick(index, index + 1)}></button>
358358
: null}
359359
{removable ?
360360
<button type="button" className="btn btn-danger array-item-remove"
361-
style={{ flex: 1, paddingLeft: 6, paddingRight: 6 }}
361+
style={{flex: 1, paddingLeft: 6, paddingRight: 6}}
362362
tabIndex="-1"
363363
disabled={disabled || readonly}
364364
onClick={this.onDropIndexClick(index)}>✖︎</button>
@@ -378,7 +378,7 @@ function AddButton({onClick, disabled}) {
378378
<p className="col-xs-2 col-xs-offset-10 array-item-add text-right">
379379
<button type="button" className="btn btn-info col-xs-12"
380380
tabIndex="-1" onClick={onClick}
381-
disabled={disabled} style={{fontWeight: 'bold' }}></button>
381+
disabled={disabled} style={{fontWeight: "bold"}}></button>
382382
</p>
383383
</div>
384384
);

0 commit comments

Comments
 (0)