mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
clean up code a little before tests are worked on
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -22,7 +22,7 @@ export function mapDispatchToProps(dispatch: Dispatch<TodoAction>) {
|
||||
};
|
||||
}
|
||||
|
||||
export default connect(
|
||||
export const TodoAppContainer = connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(TodoApp);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user