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:
@@ -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,
|
||||
|
||||
@@ -20,7 +20,7 @@ export function showSnackbar (message, cooldown) {
|
||||
};
|
||||
}
|
||||
|
||||
function openSnackbar (message, cooldown) {
|
||||
export function openSnackbar (message, cooldown) {
|
||||
return {
|
||||
type: 'openSnackbar',
|
||||
message, cooldown
|
||||
|
||||
Reference in New Issue
Block a user