diff --git a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar.js b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar.js index a4b24722..3f9d04ab 100644 --- a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar.js +++ b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar.js @@ -4,16 +4,17 @@ import React from 'react'; import Input from 'react-bootstrap/lib/Input'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; -import ButtonLink from 'react-router-bootstrap/lib/ButtonLink'; -import Row from 'react-bootstrap/lib/Row'; -import Col from 'react-bootstrap/lib/Col'; import { getLangText } from '../../utils/lang_utils'; let PieceListToolbar = React.createClass({ propTypes: { className: React.PropTypes.string, - searchFor: React.PropTypes.func + searchFor: React.PropTypes.func, + children: React.PropTypes.oneOfType([ + React.PropTypes.arrayOf(React.PropTypes.element), + React.PropTypes.element + ]) }, searchFor() { @@ -29,6 +30,9 @@ let PieceListToolbar = React.createClass({
+ + {this.props.children} + + searchFor={this.searchFor}> + {this.props.customSubmitButton} + - - Submit a new artwork to the prize - - - + + Submit a new artwork to the prize + + }/>
); }