mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-08-24 14:48:42 +08:00
Add app wide snackbar
This commit is contained in:
12
ui/src/actions/snackbarActions.ts
Normal file
12
ui/src/actions/snackbarActions.ts
Normal 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 };
|
||||
}
|
Reference in New Issue
Block a user