From 23aa611fea718de534a8a85229e1cc0713c58838 Mon Sep 17 00:00:00 2001 From: Ken Date: Thu, 31 Jan 2019 15:28:01 -0800 Subject: [PATCH] clean up code a little before tests are worked on --- playground/src/actions/index.ts | 9 ++++----- playground/src/components/TodoAppContainer.tsx | 2 +- playground/src/index.tsx | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/playground/src/actions/index.ts b/playground/src/actions/index.ts index 01d17f3..2b75c3c 100644 --- a/playground/src/actions/index.ts +++ b/playground/src/actions/index.ts @@ -1,4 +1,4 @@ -import { action, GenericActionTypes, GenericAction, GenericActionLookup, GenericActionMapping } from '../redux-utils/action'; +import { action, GenericActionTypes, GenericAction, GenericActionLookup } from '../redux-utils/action'; export const actions = { add: (label: string) => action('add', { label }), @@ -9,7 +9,6 @@ export const actions = { filter: (filterTypes: string) => action('filter', { filter: filterTypes }) }; -export type ActionMap = GenericActionMapping; -export type ActionTypes = GenericActionTypes; -export type TodoAction = GenericAction; -export type TodoActionLookup = GenericActionLookup; +export type ActionTypes = GenericActionTypes; +export type TodoAction = GenericAction; +export type TodoActionLookup = GenericActionLookup; diff --git a/playground/src/components/TodoAppContainer.tsx b/playground/src/components/TodoAppContainer.tsx index 3e8539f..1714f04 100644 --- a/playground/src/components/TodoAppContainer.tsx +++ b/playground/src/components/TodoAppContainer.tsx @@ -22,7 +22,7 @@ export function mapDispatchToProps(dispatch: Dispatch) { }; } -export default connect( +export const TodoAppContainer = connect( mapStateToProps, mapDispatchToProps )(TodoApp); diff --git a/playground/src/index.tsx b/playground/src/index.tsx index 9c2ea1d..2c8e511 100644 --- a/playground/src/index.tsx +++ b/playground/src/index.tsx @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import { reducer } from './reducers'; -import TodoAppContainer from './components/TodoAppContainer'; +import { TodoAppContainer } from './components/TodoAppContainer'; import { initializeIcons } from '@uifabric/icons'; declare var window: any;