diff --git a/js/components/ascribe_buttons/acl_information.js b/js/components/ascribe_buttons/acl_information.js index c5dde338..4d336a49 100644 --- a/js/components/ascribe_buttons/acl_information.js +++ b/js/components/ascribe_buttons/acl_information.js @@ -37,13 +37,13 @@ let AclInformation = React.createClass({ } }, - getInfoText(title, info, example){ + getInfoText(title, info, example, key){ const aim = this.props.aim; if(aim) { if(aim === 'form') { return ( -

+

{replaceSubstringAtIndex(info.slice(2), 's ', ' ')} @@ -55,7 +55,7 @@ let AclInformation = React.createClass({ } else if(aim === 'button') { return ( -

+

{title} @@ -94,13 +94,13 @@ let AclInformation = React.createClass({ verbsToDisplay = verbsToDisplay.concat(intersectLists(verbs, Object.keys(sanitizedAclObject))); } - return verbsToDisplay.map((verb) => { + return verbsToDisplay.map((verb, i) => { const title = titles[verb]; const informationSentence = informationSentences[verb]; const exampleSentence = exampleSentences[verb]; if (title && informationSentence && exampleSentence) { - return this.getInfoText(getLangText(title), getLangText(informationSentence), getLangText(exampleSentence)); + return this.getInfoText(getLangText(title), getLangText(informationSentence), getLangText(exampleSentence), i); } }); }, diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index a20e7040..08bf9d43 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -269,6 +269,7 @@ let CoaDetails = React.createClass({ } else if (typeof coa === 'string') { coaDetailElement = coa; } else { + // TODO: Define Keys coaDetailElement = [ ,

{getLangText("Just a sec, we're generating your COA")}

, diff --git a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js index 75a2d9a9..1485ffc5 100644 --- a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js +++ b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_filter_widget.js @@ -91,10 +91,10 @@ let PieceListToolbarFilterWidget = React.createClass({ label also iterate over its items, to get all filterable options */} {this.props.filterParams.map(({ label, items }, i) => { return ( -
+
  • + style={{'textAlign': 'center'}}> {label}:
  • {items.map((param, j) => { diff --git a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_order_widget.js b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_order_widget.js index 23c0d355..e3e0a29a 100644 --- a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_order_widget.js +++ b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar_order_widget.js @@ -63,9 +63,9 @@ let PieceListToolbarOrderWidget = React.createClass({ {this.props.orderParams.map((param) => { return ( -
    +
  • @@ -89,4 +89,4 @@ let PieceListToolbarOrderWidget = React.createClass({ } }); -export default PieceListToolbarOrderWidget; \ No newline at end of file +export default PieceListToolbarOrderWidget; diff --git a/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_dialog.js b/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_dialog.js index db28846b..9abe1d50 100644 --- a/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_dialog.js +++ b/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_dialog.js @@ -87,6 +87,7 @@ let FileDragAndDropDialog = React.createClass({ ); } else { if (multipleFiles) { + // TODO: Use key property dialogElement = [ this.getDragDialog(fileClassToUpload.plural), ); - navRoutesLinks = ; + navRoutesLinks = ; } else { account = ( @@ -220,23 +206,26 @@ let Header = React.createClass({
    - + + {this.getLogo()} + + + -
    {this.state.pieceListNotifications.map((pieceNotification, i) => { return ( - + + pieceOrEdition={pieceNotification.piece}/> ); } @@ -96,12 +73,14 @@ let HeaderNotifications = React.createClass({
    {this.state.editionListNotifications.map((editionNotification, i) => { return ( - + + pieceOrEdition={editionNotification.edition}/> ); } @@ -123,7 +102,7 @@ let HeaderNotifications = React.createClass({ numNotifications += this.state.editionListNotifications.length; } return ( -