From ba2ba628e815c996582c6ead81f657a14a00abd0 Mon Sep 17 00:00:00 2001 From: fragosti Date: Thu, 4 Oct 2018 15:02:06 -0700 Subject: Fix linting problems --- packages/instant/src/redux/reducer.ts | 4 ++-- packages/instant/src/redux/store.ts | 2 +- packages/instant/src/style/theme.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/instant') 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'; diff --git a/packages/instant/src/style/theme.ts b/packages/instant/src/style/theme.ts index 3bced9071..9eb6ccb56 100644 --- a/packages/instant/src/style/theme.ts +++ b/packages/instant/src/style/theme.ts @@ -6,7 +6,7 @@ const { injectGlobal, keyframes, ThemeProvider, -} = styledComponents as styledComponents.ThemedStyledComponentsModule; +} = styledComponents; export type Theme = { [key in ColorOption]: string }; -- cgit