aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-05 06:02:06 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-05 06:02:06 +0800
commitba2ba628e815c996582c6ead81f657a14a00abd0 (patch)
tree4b6928de079523f0f96644bd9ac4d4bb84742919 /packages/instant/src/redux
parenta8b01fedb1cbe61daf20dc6e0b62ccd7b1bc9b92 (diff)
downloaddexon-sol-tools-ba2ba628e815c996582c6ead81f657a14a00abd0.tar
dexon-sol-tools-ba2ba628e815c996582c6ead81f657a14a00abd0.tar.gz
dexon-sol-tools-ba2ba628e815c996582c6ead81f657a14a00abd0.tar.bz2
dexon-sol-tools-ba2ba628e815c996582c6ead81f657a14a00abd0.tar.lz
dexon-sol-tools-ba2ba628e815c996582c6ead81f657a14a00abd0.tar.xz
dexon-sol-tools-ba2ba628e815c996582c6ead81f657a14a00abd0.tar.zst
dexon-sol-tools-ba2ba628e815c996582c6ead81f657a14a00abd0.zip
Fix linting problems
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r--packages/instant/src/redux/reducer.ts4
-rw-r--r--packages/instant/src/redux/store.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts
index 7efe8aeb0..e4578d620 100644
--- a/packages/instant/src/redux/reducer.ts
+++ b/packages/instant/src/redux/reducer.ts
@@ -10,7 +10,7 @@ export const INITIAL_STATE: State = {
ethUsdPrice: undefined,
};
-export function reducer(state: State = INITIAL_STATE, action: Action): State {
+export const reducer = (state: State = INITIAL_STATE, action: Action): State => {
switch (action.type) {
case ActionTypes.UPDATE_ETH_USD_PRICE:
return {
@@ -20,4 +20,4 @@ export function reducer(state: State = INITIAL_STATE, action: Action): State {
default:
return state;
}
-}
+};
diff --git a/packages/instant/src/redux/store.ts b/packages/instant/src/redux/store.ts
index 46c4350b0..fcd19f9a8 100644
--- a/packages/instant/src/redux/store.ts
+++ b/packages/instant/src/redux/store.ts
@@ -1,5 +1,5 @@
import * as _ from 'lodash';
-import { applyMiddleware, createStore, Store as ReduxStore } from 'redux';
+import { createStore, Store as ReduxStore } from 'redux';
import { reducer, State } from './reducer';