Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
#803 Notifications removed
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Jun 13, 2017
1 parent 4e5c1fb commit e73daa9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/header/BookmarkButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { Component } from 'react';
import {connect} from 'react-redux';

import {patchRequest} from '../../actions/GenericActions';
import {addNotification} from '../../actions/AppActions';

class BookmarkButton extends Component {
constructor(props) {
Expand Down Expand Up @@ -35,11 +34,6 @@ class BookmarkButton extends Component {
'menu', null, null, null, null, 'favorite', !isBookmark, 'node',
nodeId
).then(response => {
dispatch(addNotification(
'Bookmarks',
'Bookmark ' + (!isBookmark ? 'added.' : 'removed.'), 5000,
'primary'
));
this.setState({isBookmark: !isBookmark})
updateData && updateData(response.data);
});
Expand Down

0 comments on commit e73daa9

Please sign in to comment.