Fix linting problems

This commit is contained in:
fragosti
2018-10-04 15:02:06 -07:00
parent a8b01fedb1
commit ba2ba628e8
3 changed files with 4 additions and 4 deletions

View File

@@ -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;
}
}
};

View File

@@ -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';

View File

@@ -6,7 +6,7 @@ const {
injectGlobal,
keyframes,
ThemeProvider,
} = styledComponents as styledComponents.ThemedStyledComponentsModule<Theme>;
} = styledComponents;
export type Theme = { [key in ColorOption]: string };