How to use the react-redux-toastr.toastr.success 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 el-davo / platmatic / app / cloud / apps / app-start.saga.ts View on Github external
function* start({guid}) {
	try {
		let settings: SettingsState = yield select((state: any) => state.settings);

		yield call(startApp, settings.activeInstance, guid);

		toastr.success('Alert', 'App started successfully');
	} catch (e) {
		console.log(e);

		toastr.success('Error', 'Unable to start app');
	}
}
github el-davo / platmatic / app / cloud / apps / app-stop.saga.ts View on Github external
function* stop({guid}) {
	try {
		let settings: SettingsState = yield select((state: any) => state.settings);

		yield call(stopApp, settings.activeInstance, guid);

		toastr.success('Alert', 'App stopped successfully');
	} catch (e) {
		console.log(e);

		toastr.success('Error', 'Unable to stop app');
	}
}
github el-davo / platmatic / app / cloud / apps / app-start.saga.ts View on Github external
function* start({guid}) {
	try {
		let settings: SettingsState = yield select((state: any) => state.settings);

		yield call(startApp, settings.activeInstance, guid);

		toastr.success('Alert', 'App started successfully');
	} catch (e) {
		console.log(e);

		toastr.success('Error', 'Unable to start app');
	}
}
github rmemon / react-redux-admin-panel / src / containers / App / Backend / Layouts / index.js View on Github external
componentWillReceiveProps(nextProps) {
    if (nextProps.redirectTo) {
      toastr.success('Success', 'The user updated Success.');
      this.props.history.push(nextProps.redirectTo);
      this.props.onRedirect();
    }
  }

react-redux-toastr

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

MIT
Latest version published 10 months ago

Package Health Score

64 / 100
Full package analysis