Skip to content

Commit 4276ee8

Browse files
committed
Some changes small
1 parent 34b4e54 commit 4276ee8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

srcjs/components/BookForm.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class BookForm extends React.Component {
9292
const tsubmit = submit.bind(undefined,id);
9393
const dsubmit = del.bind(undefined,id, dispatch);
9494

95-
return <form onSubmit={handleSubmit(tsubmit) }>
95+
return <form onSubmit={handleSubmit(tsubmit)}>
9696

9797
<div className='row'>
9898
<div className='six columns'>
@@ -110,25 +110,22 @@ class BookForm extends React.Component {
110110
<Select label='Subcategory' field={subcategory} options={subcategories} />
111111
</div>
112112
</div>
113-
114113
<div className='row'>
115114
<div className='six columns'>
116115
<DatePicker className="u-full-width" label='Publish Date' field={publish_date} />
117116
</div>
118117
<div className='six columns'>
119-
<Select label='author' field={author} options={
118+
<Select label='Author' field={author} options={
120119
authors.map(a => ({'id': a.id, 'name': `${a.first_name} ${a.last_name}`}))
121120
} />
122121
</div>
123122
</div>
124-
125123
<button disabled={isSubmitting} className='button button-primary' onClick={handleSubmit(tsubmit)}>
126124
Save
127125
</button>
128126
{id?<button disabled={isSubmitting} type='button' className='button button-primary' style={{backgroundColor: danger}} onClick={dsubmit}>
129127
Delete
130128
</button>:null}
131-
132129
</form>
133130
}
134131

static/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28604,7 +28604,7 @@ var BookForm = function (_React$Component) {
2860428604
_react2.default.createElement(
2860528605
'div',
2860628606
{ className: 'six columns' },
28607-
_react2.default.createElement(_Select2.default, { label: 'author', field: author, options: authors.map(function (a) {
28607+
_react2.default.createElement(_Select2.default, { label: 'Author', field: author, options: authors.map(function (a) {
2860828608
return { 'id': a.id, 'name': a.first_name + ' ' + a.last_name };
2860928609
}) })
2861028610
)

0 commit comments

Comments
 (0)