-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: hacked temp reducer so it'll work
- Loading branch information
alex-cannon
committed
Nov 20, 2019
1 parent
166a07a
commit 085976b
Showing
5 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "fd-servicedirectory", | ||
"version": "1.0.0", | ||
"description": "PFA Service Directory", | ||
"main": "src/index.jsx", | ||
"main": "src/index.tsx", | ||
"repository": "[email protected]:CodeForFoco/fd-servicedirectory.git", | ||
"author": "Code for Fort Collins", | ||
"license": "MIT", | ||
|
@@ -58,6 +58,7 @@ | |
"react-dom": "^16.8.6", | ||
"react-redux": "^7.1.3", | ||
"react-router-dom": "^5.0.0", | ||
"redux": "^4.0.4", | ||
"redux-thunk": "^2.3.0", | ||
"styled-components": "^4.2.0", | ||
"styled-normalize": "^8.0.6", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { createStore, applyMiddleware } from "redux"; | ||
import thunk from "redux-thunk"; | ||
|
||
// Temporary Reducer. Remove this. | ||
const defaultReducer = (state, action) => { | ||
let newAction = action; | ||
Object.keys(newAction); | ||
return state; | ||
}; | ||
|
||
export const configureStore = initialState => { | ||
return createStore(defaultReducer, initialState, applyMiddleware(thunk)); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// References: | ||
// https://parceljs.org/typeScript.html | ||
// https://www.typescriptlang.org/docs/handbook/tsconfig-json.html | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": "./src", | ||
"paths": { | ||
"~*": ["./*"] | ||
}, | ||
"jsx": "react", | ||
}, | ||
"include": ["src/**/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters