mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-23 19:39:10 -04:00
feat added custom pages
This commit is contained in:
21
.devcontainer/laradock/react/src/store/Snackbar/SnackbarReducer.js
vendored
Normal file
21
.devcontainer/laradock/react/src/store/Snackbar/SnackbarReducer.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import * as types from "./SnackbarTypes";
|
||||
|
||||
export default (state = {}, action) => {
|
||||
switch (action.type) {
|
||||
case types.SHOW_SNACKBAR:
|
||||
return {
|
||||
...state,
|
||||
isOpen: true,
|
||||
message: action.message,
|
||||
type: action.snacknarType
|
||||
};
|
||||
case types.HIDE_SNACKBAR:
|
||||
return {
|
||||
...state,
|
||||
isOpen: false
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user