Skip to content
Snippets Groups Projects
Commit cdde886c authored by john's avatar john
Browse files

fix redux actions coming in empty

parent 2977f0d7
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import React from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import * as Actions from 'pubsweet-client/src/actions'
import Actions from 'pubsweet-client/src/actions'
import Division from './Division'
import Modal from '../utils/Modal'
import styles from './styles/bookBuilder.local.scss'
......
......@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { Modal, Button, FormControl, FormGroup, ControlLabel } from 'react-bootstrap'
import * as Actions from 'pubsweet-client/src/actions'
import Actions from 'pubsweet-client/src/actions'
import { Link } from 'react-router'
import styles from './styles/bookList.local.scss'
......@@ -45,7 +45,7 @@ export class BookList extends React.Component {
}
_sortNewestFirst = (a, b) => {
return (b.created < a.created) ? -1 : ((b.created > a.created) ? 1 : 0);
return (b.created < a.created) ? -1 : ((b.created > a.created) ? 1 : 0)
}
render () {
......@@ -73,7 +73,7 @@ export class BookList extends React.Component {
<div className={styles.bookActions}>
<Link to={`/books/${book.id}/book-builder`} className={styles.editBook}>Edit</Link>
<a href="#" onClick={() => this._removeCollection(book)} className={styles.editBook}>Remove</a>
<a href='#' onClick={() => this._removeCollection(book)} className={styles.editBook}>Remove</a>
</div>
</div>
)) : 'Fetching…' }
......@@ -97,11 +97,12 @@ export class BookList extends React.Component {
<form onSubmit={this._createCollection}>
<FormGroup>
<ControlLabel>Title</ControlLabel>
<FormControl ref="newBookTitle" name="title" type="text" placeholder="Untitled"/>
<FormControl ref='newBookTitle' name='title' type='text' placeholder='Untitled' />
</FormGroup>
<Button bsStyle="primary" type="submit">
<i className='fa fa-plus'/> Create book
<Button bsStyle='primary' type='submit'>
<i className='fa fa-plus' />
Create book
</Button>
</form>
</Modal.Body>
......
......@@ -3,7 +3,7 @@ import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as Actions from 'pubsweet-client/src/actions'
import Actions from 'pubsweet-client/src/actions'
import SimpleEditor from './SimpleEditor'
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment