From 0ee1e3a5d9ead444bfd8a7639208dc3c06b52620 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Wed, 2 Jan 2019 13:38:35 +0100 Subject: [PATCH] remove unnecessary $FlowIssues --- package.json | 2 +- src/actions/ripple/BlockchainActions.js | 1 - src/components/images/TrezorImage/index.js | 2 +- src/utils/windowUtils.js | 12 ++++++------ yarn.lock | 6 +++--- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index dc83c0b3..c29eb1b7 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "rimraf": "^2.6.2", "styled-components": "^4.1.2", "styled-normalize": "^8.0.4", - "trezor-connect": "6.0.3-beta.7", + "trezor-connect": "6.0.3-beta.8", "wallet-address-validator": "^0.2.4", "web3": "1.0.0-beta.35", "webpack": "^4.16.3", diff --git a/src/actions/ripple/BlockchainActions.js b/src/actions/ripple/BlockchainActions.js index 8045268f..754d9a7c 100644 --- a/src/actions/ripple/BlockchainActions.js +++ b/src/actions/ripple/BlockchainActions.js @@ -52,7 +52,6 @@ export const onBlockMined = (network: string): PromiseAction => async (dis dispatch({ type: BLOCKCHAIN.UPDATE_FEE, shortcut: network, - // $FlowIssue: payload type from TrezorConnect feeLevels: feeRequest.payload, }); } diff --git a/src/components/images/TrezorImage/index.js b/src/components/images/TrezorImage/index.js index effc6b78..abc6fdf0 100644 --- a/src/components/images/TrezorImage/index.js +++ b/src/components/images/TrezorImage/index.js @@ -15,7 +15,7 @@ const Img = styled.img` `; const TrezorImage = ({ model }: Props) => { - // $FlowIssue + // $FlowIssue: `require` must be a string literal. const src = require(`./images/trezor-${model}.png`); // eslint-disable-line return ( diff --git a/src/utils/windowUtils.js b/src/utils/windowUtils.js index c13c803b..b6ce2884 100644 --- a/src/utils/windowUtils.js +++ b/src/utils/windowUtils.js @@ -2,8 +2,8 @@ export const getViewportHeight = (): number => ( - // $FlowIssue - document.documentElement.clientHeight || document.body.clientHeight // $FlowIssue + // $FlowIssue: "clientHeight" missing in null + document.documentElement.clientHeight || document.body.clientHeight ); export const getScrollX = (): number => { @@ -12,8 +12,8 @@ export const getScrollX = (): number => { } if (window.scrollLeft !== undefined) { return window.scrollLeft; } - // $FlowIssue - return (document.documentElement || document.body.parentNode || document.body).scrollLeft; // $FlowIssue + // $FlowIssue: parentNode || scrollLeft missing + return (document.documentElement || document.body.parentNode || document.body).scrollLeft; }; export const getScrollY = (): number => { @@ -22,6 +22,6 @@ export const getScrollY = (): number => { } if (window.scrollTop !== undefined) { return window.scrollTop; } - // $FlowIssue - return (document.documentElement || document.body.parentNode || document.body).scrollTop; // $FlowIssue + // $FlowIssue: parentNode || scrollTop missing + return (document.documentElement || document.body.parentNode || document.body).scrollTop; }; \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 4370f6e4..12969240 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9871,9 +9871,9 @@ tr46@^1.0.1: dependencies: punycode "^2.1.0" -trezor-connect@6.0.3-beta.7: - version "6.0.3-beta.7" - resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-6.0.3-beta.7.tgz#b9a29851409801558040c9a6073c02d3399d7d3d" +trezor-connect@6.0.3-beta.8: + version "6.0.3-beta.8" + resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-6.0.3-beta.8.tgz#ce9b2e64003f8a8409891c50935765e7191b3b66" dependencies: babel-runtime "^6.26.0" events "^1.1.1"