snackbar.ts 176 Bytes
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
import { SHOW_SNACKBAR } from 'constants/snackbar';
Maxym Borodenko's avatar
Maxym Borodenko committed
2
3

export const showSnackbar = (content: string) => (dispatch) => {
Matija Obreza's avatar
Matija Obreza committed
4
    dispatch({type: SHOW_SNACKBAR, payload: content});
Maxym Borodenko's avatar
Maxym Borodenko committed
5
};