How to use the react-redux-toastr.toastr.error function in react-redux-toastr

To help you get started, we’ve selected a few react-redux-toastr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github resource-watch / resource-watch / components / widgets / editor / modal / SaveWidgetModal.js View on Github external
.catch((err) => {
        this.setState({
          saved: false,
          error: true,
          errorMessage: err.message
        });
        toastr.error('Error', err); // eslint-disable-line no-console
      })
      .then(() => this.setState({ loading: false }));
github keyteki / keyteki / client / GameList.jsx View on Github external
watchGame(event, game) {
        event.preventDefault();

        if(!this.props.username) {
            toastr.error('Please login before trying to watch a game');
            return;
        }

        if(game.needsPassword) {
            this.props.joinPasswordGame(game, 'Watch');
        } else {
            this.props.socket.emit('watchgame', game.id);
        }
    }
github keyteki / keyteki / client / Components / Games / GameList.jsx View on Github external
watchGame(event, game) {
        let t = this.props.t;

        event.preventDefault();

        if(!this.props.user) {
            toastr.error(t('Please login before trying to watch a game'));
            return;
        }

        if(game.needsPassword) {
            this.props.joinPasswordGame(game, 'Watch');
        } else {
            this.props.socket.emit('watchgame', game.id);
        }
    }
github resource-watch / resource-watch / components / admin / insights / table / InsightsTable.js View on Github external
onError: (error) => {
          this.setState({ message: `Error loading insights: ${error}`, loading: false });
          toastr.error('Error', error);
        }
      }
github resource-watch / resource-watch / components / admin / widget / form / WidgetForm.js View on Github external
onError: (error) => {
          this.setState({ loading: false });
          toastr.error('Error', error);
        }
      });
github resource-watch / resource-watch / components / datasets / metadata / form / component.js View on Github external
.catch((err) => {
          this.setState({ loading: false });
          toastr.error('Error', err);
        });
    }
github resource-watch / resource-watch / components / app / myrw / widgets / tabs / edit.js View on Github external
}).catch((err) => {
        this.setState({ loading: false });
        toastr.error('Error', err);
      });
  }
github GetKitsune / application-development-kit / IDE / src / actions / editor.js View on Github external
export const fileSourceUpdateError = error => {
	toastr.error('error Saving File', `${error}`);
	return {
		type: editor.FILESOURCE_UPDATEERROR,
		payload: { isFetching: false }
	};
};
github keyteki / keyteki / client / pages / Lobby.jsx View on Github external
checkChatError(props) {
        if(props.lobbyError) {
            toastr.error('New users are limited from chatting in the lobby, try again later');

            setTimeout(() => {
                this.props.clearChatStatus();
            }, 5000);
        }
    }
github resource-watch / resource-watch / components / collections-panel / collections-panel-component.js View on Github external
onAddCollection = () => {
    const { addCollection } = this.props;
    const { newCollectionName } = this.state;

    if ((newCollectionName || '').toLowerCase() === 'favourites') {
      toastr.error('Duplicated Favourites list', 'You cannot duplicate this list.');
      return;
    }

    addCollection({ collectionName: newCollectionName });
  }

react-redux-toastr

react-redux-toastr is a React toastr message implemented with Redux

MIT
Latest version published 2 months ago

Package Health Score

75 / 100
Full package analysis