mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-31 19:30:53 +00:00
remove unnecessary $FlowIssues
This commit is contained in:
parent
32ee758af2
commit
0ee1e3a5d9
@ -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",
|
||||
|
@ -52,7 +52,6 @@ export const onBlockMined = (network: string): PromiseAction<void> => async (dis
|
||||
dispatch({
|
||||
type: BLOCKCHAIN.UPDATE_FEE,
|
||||
shortcut: network,
|
||||
// $FlowIssue: payload type from TrezorConnect
|
||||
feeLevels: feeRequest.payload,
|
||||
});
|
||||
}
|
||||
|
@ -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 (
|
||||
<Wrapper>
|
||||
|
@ -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;
|
||||
};
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user