Skip to content

Commit 1e545aa

Browse files
committed
fixing all new TS 2.1.4 tsc errors
1 parent 67d0e3e commit 1e545aa

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

src/components/page-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import classNames from 'classnames';
2+
import * as classNames from 'classnames';
33

44
// const inlineStyles = {};
55

src/components/page-hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import classNames from 'classnames';
2+
import * as classNames from 'classnames';
33

44
// const inlineStyles = {};
55

src/components/page-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import classNames from 'classnames';
2+
import * as classNames from 'classnames';
33

44
// const inlineStyles = {};
55

src/containers/currency-converter-container/components/currency-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface IProps {
99
export function CurrencyInput({value = 0, onChange}: IProps) {
1010

1111
const handleChange = (ev: React.SyntheticEvent<HTMLInputElement>) => {
12-
onChange(ev.target.value);
12+
onChange(ev.currentTarget.value);
1313
};
1414

1515
return (

src/containers/currency-converter-container/components/currency-select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface IProps {
1010
export function CurrencySelect({currencies = [], value, onChange}: IProps) {
1111

1212
const handleChange = (ev: React.SyntheticEvent<HTMLSelectElement>) => {
13-
onChange(ev.target.value);
13+
onChange(ev.currentTarget.value);
1414
};
1515

1616
return (

src/layouts/components/layout-footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import classNames from 'classnames';
2+
import * as classNames from 'classnames';
33

44
const inlineStyles = {
55
topBorder: {

src/layouts/components/layout-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import classNames from 'classnames';
2+
import * as classNames from 'classnames';
33

44
// const inlineStyles = {};
55

src/layouts/components/layout-main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import classNames from 'classnames';
2+
import * as classNames from 'classnames';
33

44
const inlineStyles = {
55
background: {

src/layouts/components/layout-top-nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import classNames from 'classnames';
2+
import * as classNames from 'classnames';
33
import { Link } from 'react-router';
44

55
// const inlineStyles = {};

src/services/local-storage/app-store.spec.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import {AppStore} from './app-store';
2-
import test from 'blue-tape';
1+
import { AppStore } from './app-store';
2+
import * as test from 'blue-tape';
33

4-
test('should create empty Store asynchronously', async function(t) {
4+
test('should create empty Store asynchronously', async function (t) {
55
function createStorePromise() {
66
return Promise.resolve(new AppStore());
77
}
88

99
t.equal((await createStorePromise()) instanceof AppStore, true);
1010
});
1111

12-
test('should create empty Store', function(t) {
12+
test('should create empty Store', function (t) {
1313
const appStore = new AppStore();
1414

1515
t.equal(appStore instanceof AppStore, true);

0 commit comments

Comments
 (0)