mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2025-08-23 18:23:58 -07:00
add calculator-react
This commit is contained in:
8
calculator-react/src/actions/innerWindowHeightAction.js
Normal file
8
calculator-react/src/actions/innerWindowHeightAction.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export const SETWINDOWINNERHEIGHT = "SETWINDOWINNERHEIGHT";
|
||||
|
||||
export const innerWindowHeightAction = (windowInnerHeight) => {
|
||||
return {
|
||||
type: SETWINDOWINNERHEIGHT,
|
||||
windowInnerHeight: windowInnerHeight,
|
||||
};
|
||||
};
|
8
calculator-react/src/actions/innerWindowWidthAction.js
Normal file
8
calculator-react/src/actions/innerWindowWidthAction.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export const SETWINDOWINNERWIDTH = "SETWINDOWINNERWIDTH";
|
||||
|
||||
export const innerWindowWidthAction = (windowInnerWidth) => {
|
||||
return {
|
||||
type: SETWINDOWINNERWIDTH,
|
||||
windowInnerWidth: windowInnerWidth,
|
||||
};
|
||||
};
|
8
calculator-react/src/actions/inputStringAction.js
Normal file
8
calculator-react/src/actions/inputStringAction.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export const SETINPUTSTRING = "SETINPUTSTRING";
|
||||
|
||||
export const inputStringAction = (inputString) => {
|
||||
return {
|
||||
type: SETINPUTSTRING,
|
||||
inputString: inputString,
|
||||
};
|
||||
};
|
8
calculator-react/src/actions/operationStringAction.js
Normal file
8
calculator-react/src/actions/operationStringAction.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export const SETOPERATIONSTRING = "SETOPERATIONSTRING";
|
||||
|
||||
export const operationStringAction = (operationString) => {
|
||||
return {
|
||||
type: SETOPERATIONSTRING,
|
||||
operationString: operationString,
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user