Added sidebar menu feature

This commit is contained in:
mgabdev
2019-08-14 23:04:03 -04:00
parent 915f7f891a
commit 0be86d6ec5
8 changed files with 369 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import { SIDEBAR_OPEN, SIDEBAR_CLOSE } from '../actions/sidebar';
export default function sidebar(state={}, action) {
switch(action.type) {
case SIDEBAR_OPEN:
return { sidebarOpen: true };
case SIDEBAR_CLOSE:
return { sidebarOpen: false };
default:
return state;
}
};