Fix newError noops when not bound to dispacher (#4013)

* AddContract properly binds newError

* EditMeta properly binds newError

* PasswordManager properly binds newError

* pass null instead of empty mapStateToProps

* Add openSnackbar test & binded prop
This commit is contained in:
Jaco Greeff
2017-01-03 17:41:21 +01:00
committed by GitHub
parent 9db3f383e3
commit 04ed53e0f2
12 changed files with 202 additions and 48 deletions

View File

@@ -16,7 +16,7 @@
import { newError } from '~/ui/Errors/actions';
import { setAddressImage } from './providers/imagesActions';
import { showSnackbar } from './providers/snackbarActions';
import { openSnackbar, showSnackbar } from './providers/snackbarActions';
import { clearStatusLogs, toggleStatusLogs, toggleStatusRefresh } from './providers/statusActions';
import { toggleView } from '~/views/Settings/actions';
@@ -24,6 +24,7 @@ export {
newError,
clearStatusLogs,
setAddressImage,
openSnackbar,
showSnackbar,
toggleStatusLogs,
toggleStatusRefresh,

View File

@@ -20,7 +20,7 @@ export function showSnackbar (message, cooldown) {
};
}
function openSnackbar (message, cooldown) {
export function openSnackbar (message, cooldown) {
return {
type: 'openSnackbar',
message, cooldown