Skip to content

Commit 9ba8070

Browse files
committed
Fix typos
1 parent 9ffec00 commit 9ba8070

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

typescript-react-starter/src/containers/Hello.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import Hello from '../components/Hello'
55
import * as actions from '../actions'
66
import { StoreState } from '../types';
77

8-
export function mapStateToProps({ enthusiamLevel, languageName }: StoreState) {
8+
export function mapStateToProps({ enthusiasmLevel, languageName }: StoreState) {
99
return {
10-
enthusiamLevel,
10+
enthusiasmLevel,
1111
name: languageName,
1212
};
1313
}

typescript-react-starter/src/reducers/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { INCREMENT_ENTHUSIASM, DECREMENT_ENTHUSIASM } from '../constants';
55
export function enthusiasm(state: StoreState, action: EnthusiasmAction): StoreState {
66
switch (action.type) {
77
case INCREMENT_ENTHUSIASM:
8-
return { ...state, enthusiamLevel: state.enthusiamLevel + 1 };
8+
return { ...state, enthusiasmLevel: state.enthusiasmLevel + 1 };
99
case DECREMENT_ENTHUSIASM:
10-
return { ...state, enthusiamLevel: state.enthusiamLevel - 1 };
10+
return { ...state, enthusiasmLevel: state.enthusiasmLevel - 1 };
1111
}
1212
return state;
1313
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export interface StoreState {
22
languageName: string;
3-
enthusiamLevel: number;
3+
enthusiasmLevel: number;
44
}

0 commit comments

Comments
 (0)