-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steven Hoang
committed
Jun 27, 2018
1 parent
97f9757
commit 748e97d
Showing
14 changed files
with
124 additions
and
54 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import charts from '../_dummy_data/charts'; | ||
import se from "../_dummy_data//simulator"; | ||
import charts from "../_dummy_data/charts"; | ||
import simulator from "../_dummy_data//simulator"; | ||
|
||
//Calling Api and return data | ||
//This will use timeout to simulate server call. | ||
export function getChartData() { | ||
return se(charts); | ||
return simulator(charts); | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import general from '../_dummy_data/general'; | ||
import se from "../_dummy_data//simulator"; | ||
import general from "../_dummy_data/general"; | ||
import simulator from "../_dummy_data//simulator"; | ||
|
||
//Calling Api and return data | ||
//This will use timeout to simulate server call. | ||
export function getGeneral() { | ||
return se(general); | ||
return simulator(general); | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import GeneralApi from './generalApi'; | ||
import ChartApi from './chartApi'; | ||
import * as GeneralApi from "./generalApi"; | ||
import * as ChartApi from "./chartApi"; | ||
|
||
export default { | ||
GeneralApi, | ||
ChartApi | ||
} | ||
}; |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
charts: {}, | ||
general: {} | ||
} | ||
}; |
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,12 @@ | ||
import { | ||
makeThunkAsyncActionCreator | ||
} from "redux-toolbelt-thunk"; | ||
import Api from "../../api"; | ||
|
||
const getGeneral = makeThunkAsyncActionCreator("FETCH_USER", Api.GeneralApi.getGeneral); | ||
const getChartData = makeThunkAsyncActionCreator("FETCH_USER", Api.ChartApi.getChartData); | ||
|
||
export default { | ||
getGeneral, | ||
getChartData | ||
} |
Oops, something went wrong.