clean up code a little before tests are worked on

This commit is contained in:
Ken
2019-01-31 15:28:01 -08:00
parent 886215cefa
commit 23aa611fea
3 changed files with 6 additions and 7 deletions

View File

@@ -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<typeof actions>;
export type ActionTypes = GenericActionTypes<ActionMap>;
export type TodoAction = GenericAction<ActionMap>;
export type TodoActionLookup = GenericActionLookup<ActionMap>;
export type ActionTypes = GenericActionTypes<typeof actions>;
export type TodoAction = GenericAction<typeof actions>;
export type TodoActionLookup = GenericActionLookup<typeof actions>;

View File

@@ -22,7 +22,7 @@ export function mapDispatchToProps(dispatch: Dispatch<TodoAction>) {
};
}
export default connect(
export const TodoAppContainer = connect(
mapStateToProps,
mapDispatchToProps
)(TodoApp);

View File

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