Add app wide snackbar

This commit is contained in:
Ken Hibino
2020-12-10 07:06:54 -08:00
parent ce978f4516
commit d8c549adb2
4 changed files with 131 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
export const CLOSE_SNACKBAR = "CLOSE_SNACKBAR";
interface CloseSnakbarAction {
type: typeof CLOSE_SNACKBAR;
}
// Union of all snackbar related action types
export type SnackbarActionTypes = CloseSnakbarAction;
export function closeSnackbar() {
return { type: CLOSE_SNACKBAR };
}