Fix notification links causing page refreshes

This commit is contained in:
Brett Sun 2016-06-16 17:28:42 +02:00
parent ccdaa355ec
commit 8581131fc7
1 changed files with 8 additions and 8 deletions

View File

@ -6,6 +6,7 @@ import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import MenuItem from 'react-bootstrap/lib/MenuItem';
import Nav from 'react-bootstrap/lib/Nav';
import LinkContainer from 'react-router-bootstrap/lib/LinkContainer';
import NotificationActions from '../actions/notification_actions';
import NotificationStore from '../stores/notification_store';
@ -67,14 +68,13 @@ let HeaderNotifications = React.createClass({
: `/editions/${pieceOrEdition.bitcoin_id}`;
return (
<MenuItem
key={href}
eventKey={i + 2}
href={href}>
<NotificationListItem
notification={notification.notification}
pieceOrEdition={pieceOrEdition} />
</MenuItem>
<LinkContainer key={href} to={href}>
<MenuItem>
<NotificationListItem
notification={notification.notification}
pieceOrEdition={pieceOrEdition} />
</MenuItem>
</LinkContainer>
);
})}
</div>