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:
7
src/actions/actionTypes.js
Normal file
7
src/actions/actionTypes.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export const UPDATEVALUE = 'UPDATEVALUE';
|
||||
export const UPDATEMULT = 'UPDATEMULT';
|
||||
export const MENUOPEN = 'MENUOPEN';
|
||||
export const MENUCLOSE = 'MENUCLOSE';
|
||||
export const MAIN = 'MAIN';
|
||||
export const HELP = 'HELP';
|
||||
export const SETREF = 'SETREF';
|
19
src/actions/calcActions.js
Normal file
19
src/actions/calcActions.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import * as types from './actionTypes';
|
||||
|
||||
export function updatevalue(form, index, value) {
|
||||
return {
|
||||
type: types.UPDATEVALUE,
|
||||
form,
|
||||
index,
|
||||
value,
|
||||
};
|
||||
}
|
||||
|
||||
export function updatemult(form, index, mult) {
|
||||
return {
|
||||
type: types.UPDATEMULT,
|
||||
form,
|
||||
index,
|
||||
mult,
|
||||
};
|
||||
}
|
25
src/actions/menuActions.js
Normal file
25
src/actions/menuActions.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as types from './actionTypes';
|
||||
|
||||
export function menuopen() {
|
||||
return {
|
||||
type: types.MENUOPEN
|
||||
};
|
||||
}
|
||||
|
||||
export function menuclose() {
|
||||
return {
|
||||
type: types.MENUCLOSE
|
||||
};
|
||||
}
|
||||
|
||||
export function main() {
|
||||
return {
|
||||
type: types.MAIN
|
||||
};
|
||||
}
|
||||
|
||||
export function help() {
|
||||
return {
|
||||
type: types.HELP
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user