From 8df34f804020fb9ff2a060301e32723d0adf4418 Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Mon, 28 Sep 2020 11:48:01 +0200 Subject: [PATCH] remove TS warning --- client/src/actions/buckets.ts | 1 - client/src/actions/redeemable.ts | 1 - client/src/components/Home.tsx | 2 -- client/src/components/RecipientBuckets.tsx | 1 - client/src/reducers/debug.ts | 2 +- 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/actions/buckets.ts b/client/src/actions/buckets.ts index fad5672..cd8519c 100644 --- a/client/src/actions/buckets.ts +++ b/client/src/actions/buckets.ts @@ -1,7 +1,6 @@ import { RootState } from '../reducers'; import { Dispatch } from 'redux'; import { bucketsAddresses } from "../config"; -import Bucket from '../contracts/Bucket.json'; import { newBucketContract } from "../utils"; import { TokenType } from "../reducers/buckets"; import IERC20Detailed from '../contracts/IERC20Detailed.json'; diff --git a/client/src/actions/redeemable.ts b/client/src/actions/redeemable.ts index c71c45e..c712f25 100644 --- a/client/src/actions/redeemable.ts +++ b/client/src/actions/redeemable.ts @@ -1,7 +1,6 @@ import { RootState } from '../reducers'; import ERC20BucketFactory from '../contracts/ERC20BucketFactory.json'; import NFTBucketFactory from '../contracts/NFTBucketFactory.json'; -import ERC20Bucket from '../contracts/ERC20Bucket.json'; import IERC20Detailed from '../contracts/IERC20Detailed.json'; import IERC721Metadata from '../contracts/IERC721Metadata.json'; import { config } from "../config"; diff --git a/client/src/components/Home.tsx b/client/src/components/Home.tsx index ef1f17a..b55ed76 100644 --- a/client/src/components/Home.tsx +++ b/client/src/components/Home.tsx @@ -4,8 +4,6 @@ import { } from 'react-redux'; export default function() { - const dispatch = useDispatch(); - return <> ; } diff --git a/client/src/components/RecipientBuckets.tsx b/client/src/components/RecipientBuckets.tsx index b087a84..a47aef0 100644 --- a/client/src/components/RecipientBuckets.tsx +++ b/client/src/components/RecipientBuckets.tsx @@ -8,7 +8,6 @@ import { } from 'react-redux'; import { recipientBucketsPath, buildRedeemablePath } from '../config'; import { loadBuckets, unloadBuckets } from "../actions/buckets"; -import { ERC20Details } from "../reducers/buckets"; import { Link } from "react-router-dom"; interface BuckestListItemProps { diff --git a/client/src/reducers/debug.ts b/client/src/reducers/debug.ts index a82e5d0..2de755b 100644 --- a/client/src/reducers/debug.ts +++ b/client/src/reducers/debug.ts @@ -14,7 +14,7 @@ const initialState: DebugState = { export const debugReducer = (state: DebugState = initialState, action: DebugActions): DebugState => { switch (action.type) { case DEBUG_WRITTEN: { - console.error(action.text); + console.log(action.text); return { ...state, lines: [