Commit everything done until beginning version control

Removed the boilerplate's counter, started a drawer menu, added a
toolbar to access the menu, created the calculator form and state.
This commit is contained in:
2017-02-01 22:52:00 -07:00
parent ff17b2a0d3
commit 7f6fc32d74
28 changed files with 607 additions and 94 deletions
+43
View File
@@ -0,0 +1,43 @@
import React, {Component} from 'react';
import * as types from '../actions/actionTypes';
import CalcApp from '../containers/calcApp';
import HelpApp from '../containers/helpApp';
const initialState = {
isOpen: false,
refdrawer: null,
page: <CalcApp />,
subtitle: 'Calculator Page',
};
export default function menu(state = initialState, action = {}) {
switch (action.type) {
case types.MENUOPEN:
return {
...state,
isOpen: true,
};
case types.MENUCLOSE:
return {
...state,
isOpen: false,
};
case types.MAIN:
return {
...state,
isOpen: false,
page: <CalcApp />,
subtitle: 'Calculator Page',
};
case types.HELP:
return {
...state,
isOpen: false,
page: <HelpApp />,
subtitle: 'Help',
};
default:
return state;
}
}