Skip to content

Commit

Permalink
Add array keys and tooltip ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnafu committed Apr 26, 2017
1 parent d7c559a commit be1ca9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/client/plugins/GridContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const GridContainer = React.createClass({
className={this.props.className}
mapType={this.props.mapType}
container={(props) => (<Grid fluid><Row>
{props.children.map( item => <Col xs={12} xsOffset={0} sm={6} smOffset={3} smOffset={0}>{item}</Col>)}
{props.children.map( (item, idx) => <Col key={idx} xs={12} xsOffset={0} sm={6} smOffset={3} smOffset={0}>{item}</Col>)}
</Row></Grid>)}
toolStyle="primary"
activeStyle="default"
Expand Down
2 changes: 1 addition & 1 deletion web/client/plugins/ScrollTop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const ScrollTop = React.createClass({
render() {
return (
<ScrollUp style={this.props.style} showUnder={this.props.showUnder}>
<OverlayTrigger placement="left" overlay={<Tooltip><Message msgId="home.scrollTop"/></Tooltip>}>
<OverlayTrigger placement="left" overlay={<Tooltip id="scrollTop-button-tooltip"><Message msgId="home.scrollTop"/></Tooltip>}>
<Button bsStyle="primary" className={this.props.btnClassName}><Glyphicon glyph="arrow-up"/></Button>
</OverlayTrigger>
</ScrollUp>);
Expand Down

0 comments on commit be1ca9b

Please sign in to comment.