mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-03 21:00:55 +00:00
remove unnecessary $FlowIssues
This commit is contained in:
parent
32ee758af2
commit
0ee1e3a5d9
@ -70,7 +70,7 @@
|
|||||||
"rimraf": "^2.6.2",
|
"rimraf": "^2.6.2",
|
||||||
"styled-components": "^4.1.2",
|
"styled-components": "^4.1.2",
|
||||||
"styled-normalize": "^8.0.4",
|
"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",
|
"wallet-address-validator": "^0.2.4",
|
||||||
"web3": "1.0.0-beta.35",
|
"web3": "1.0.0-beta.35",
|
||||||
"webpack": "^4.16.3",
|
"webpack": "^4.16.3",
|
||||||
|
@ -52,7 +52,6 @@ export const onBlockMined = (network: string): PromiseAction<void> => async (dis
|
|||||||
dispatch({
|
dispatch({
|
||||||
type: BLOCKCHAIN.UPDATE_FEE,
|
type: BLOCKCHAIN.UPDATE_FEE,
|
||||||
shortcut: network,
|
shortcut: network,
|
||||||
// $FlowIssue: payload type from TrezorConnect
|
|
||||||
feeLevels: feeRequest.payload,
|
feeLevels: feeRequest.payload,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ const Img = styled.img`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const TrezorImage = ({ model }: Props) => {
|
const TrezorImage = ({ model }: Props) => {
|
||||||
// $FlowIssue
|
// $FlowIssue: `require` must be a string literal.
|
||||||
const src = require(`./images/trezor-${model}.png`); // eslint-disable-line
|
const src = require(`./images/trezor-${model}.png`); // eslint-disable-line
|
||||||
return (
|
return (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
|
|
||||||
export const getViewportHeight = (): number => (
|
export const getViewportHeight = (): number => (
|
||||||
// $FlowIssue
|
// $FlowIssue: "clientHeight" missing in null
|
||||||
document.documentElement.clientHeight || document.body.clientHeight // $FlowIssue
|
document.documentElement.clientHeight || document.body.clientHeight
|
||||||
);
|
);
|
||||||
|
|
||||||
export const getScrollX = (): number => {
|
export const getScrollX = (): number => {
|
||||||
@ -12,8 +12,8 @@ export const getScrollX = (): number => {
|
|||||||
} if (window.scrollLeft !== undefined) {
|
} if (window.scrollLeft !== undefined) {
|
||||||
return window.scrollLeft;
|
return window.scrollLeft;
|
||||||
}
|
}
|
||||||
// $FlowIssue
|
// $FlowIssue: parentNode || scrollLeft missing
|
||||||
return (document.documentElement || document.body.parentNode || document.body).scrollLeft; // $FlowIssue
|
return (document.documentElement || document.body.parentNode || document.body).scrollLeft;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getScrollY = (): number => {
|
export const getScrollY = (): number => {
|
||||||
@ -22,6 +22,6 @@ export const getScrollY = (): number => {
|
|||||||
} if (window.scrollTop !== undefined) {
|
} if (window.scrollTop !== undefined) {
|
||||||
return window.scrollTop;
|
return window.scrollTop;
|
||||||
}
|
}
|
||||||
// $FlowIssue
|
// $FlowIssue: parentNode || scrollTop missing
|
||||||
return (document.documentElement || document.body.parentNode || document.body).scrollTop; // $FlowIssue
|
return (document.documentElement || document.body.parentNode || document.body).scrollTop;
|
||||||
};
|
};
|
@ -9871,9 +9871,9 @@ tr46@^1.0.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
punycode "^2.1.0"
|
punycode "^2.1.0"
|
||||||
|
|
||||||
trezor-connect@6.0.3-beta.7:
|
trezor-connect@6.0.3-beta.8:
|
||||||
version "6.0.3-beta.7"
|
version "6.0.3-beta.8"
|
||||||
resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-6.0.3-beta.7.tgz#b9a29851409801558040c9a6073c02d3399d7d3d"
|
resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-6.0.3-beta.8.tgz#ce9b2e64003f8a8409891c50935765e7191b3b66"
|
||||||
dependencies:
|
dependencies:
|
||||||
babel-runtime "^6.26.0"
|
babel-runtime "^6.26.0"
|
||||||
events "^1.1.1"
|
events "^1.1.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user