Skip to content

Commit

Permalink
start removing flow references
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayuki0x committed Oct 14, 2019
1 parent 17c4239 commit 8588cdf
Show file tree
Hide file tree
Showing 82 changed files with 97 additions and 472 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
true,
{ "button": true, "submit": true, "reset": true }
],
"header/header": [2, "app/constants/header.js"]
"header/header": [2, "app/constants/header.js"],
"react/no-array-index-key": false,
"global-require": 0
}
}
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"recommendations": [
"dbaeumer.vscode-eslint",
"dzannotti.vscode-babel-coloring",
"EditorConfig.EditorConfig",
"flowtype.flow-for-vscode"
"EditorConfig.EditorConfig"
]
}
2 changes: 0 additions & 2 deletions app/Routes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
2 changes: 0 additions & 2 deletions app/actions/receive.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
7 changes: 7 additions & 0 deletions app/app.global.scss
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/*
* Copyright (C) 2019 ExtraHash
*
* Please see the included LICENSE file for more information.
*
*/

@import '~../node_modules/source-code-pro/source-code-pro.css';
2 changes: 0 additions & 2 deletions app/components/AddressBook.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
4 changes: 0 additions & 4 deletions app/components/Balance.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down Expand Up @@ -129,14 +127,12 @@ export default class Balance extends Component<Props, State> {
) {
balanceTooltip =
`Unlocked: ${fiatSymbol}${session.formatLikeCurrency(
// $FlowFixMe
Number(
fiatPrice * session.atomicToHuman(unlockedBalance, false)
).toFixed(fiatDecimals)
)}
<br>` +
`Locked: ${fiatSymbol}${session.formatLikeCurrency(
// $FlowFixMe
Number(
fiatPrice * session.atomicToHuman(lockedBalance, false)
).toFixed(fiatDecimals)
Expand Down
10 changes: 1 addition & 9 deletions app/components/BottomBar.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import ReactTooltip from 'react-tooltip';
import { session, loginCounter, config } from '../index';
import { session, loginCounter } from '../index';
import SyncStatus from './SyncStatus';
import DaemonSyncStatus from './DaemonSyncStatus';
import Balance from './Balance';
import NodeFee from './NodeFee';
import uiType from '../utils/uitype';
Expand Down Expand Up @@ -48,7 +45,6 @@ class BottomBar extends Component<Props, State> {
// prettier-ignore
const { darkMode } = this.props;
const { navBarCount } = this.state;
const { useLocalDaemon } = config;
const { toolTipColor } = uiType(darkMode);

return (
Expand All @@ -74,9 +70,6 @@ class BottomBar extends Component<Props, State> {
<div className="field is-grouped is-grouped-multiline is-grouped-right">
{}
<NodeFee size="is-large" darkMode={darkMode} />
{useLocalDaemon && (
<DaemonSyncStatus size="is-large" darkMode={darkMode} />
)}
<SyncStatus size="is-large" darkMode={darkMode} />
<Balance size="is-large" darkMode={darkMode} />
</div>
Expand All @@ -86,5 +79,4 @@ class BottomBar extends Component<Props, State> {
}
}

// $FlowFixMe
export default withRouter(BottomBar);
2 changes: 0 additions & 2 deletions app/components/ChangePassword.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
2 changes: 0 additions & 2 deletions app/components/CloseToTrayToggle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
114 changes: 0 additions & 114 deletions app/components/DaemonSyncStatus.js

This file was deleted.

2 changes: 0 additions & 2 deletions app/components/DarkModeToggle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
2 changes: 0 additions & 2 deletions app/components/FiatSelector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
2 changes: 0 additions & 2 deletions app/components/FirstStartup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
8 changes: 0 additions & 8 deletions app/components/Home.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down Expand Up @@ -269,7 +267,6 @@ export default class Home extends Component<Props, State> {
fiatPrice !== 0 &&
`-${fiatSymbol}${session
.formatLikeCurrency(
// $FlowFixMe
(
fiatPrice *
session.atomicToHuman(tx[2], false)
Expand All @@ -281,7 +278,6 @@ export default class Home extends Component<Props, State> {
fiatPrice !== 0 &&
`-${session
.formatLikeCurrency(
// $FlowFixMe
(
fiatPrice *
session.atomicToHuman(tx[2], false)
Expand All @@ -302,7 +298,6 @@ export default class Home extends Component<Props, State> {
{displayCurrency === 'fiat' &&
symbolLocation === 'prefix' &&
`${fiatSymbol}${session.formatLikeCurrency(
// $FlowFixMe
(
fiatPrice *
session.atomicToHuman(tx[2], false)
Expand All @@ -311,7 +306,6 @@ export default class Home extends Component<Props, State> {
{displayCurrency === 'fiat' &&
symbolLocation === 'suffix' &&
`${session.formatLikeCurrency(
// $FlowFixMe
(
fiatPrice *
session.atomicToHuman(tx[2], false)
Expand All @@ -327,7 +321,6 @@ export default class Home extends Component<Props, State> {
{displayCurrency === 'fiat' &&
symbolLocation === 'prefix' &&
`${fiatSymbol}${session.formatLikeCurrency(
// $FlowFixMe
(
fiatPrice *
session.atomicToHuman(tx[3], false)
Expand All @@ -336,7 +329,6 @@ export default class Home extends Component<Props, State> {
{displayCurrency === 'fiat' &&
symbolLocation === 'suffix' &&
`${session.formatLikeCurrency(
// $FlowFixMe
(
fiatPrice *
session.atomicToHuman(tx[3], false)
Expand Down
2 changes: 0 additions & 2 deletions app/components/Import.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
2 changes: 0 additions & 2 deletions app/components/ImportKey.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
2 changes: 0 additions & 2 deletions app/components/LogLevelSelector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
2 changes: 0 additions & 2 deletions app/components/Login.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
2 changes: 0 additions & 2 deletions app/components/Modal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down
3 changes: 0 additions & 3 deletions app/components/NavBar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @flow
//
// Copyright (C) 2019 ExtraHash
//
// Please see the included LICENSE file for more information.
Expand Down Expand Up @@ -273,5 +271,4 @@ NavBar.defaultProps = {
query: ''
};

// $FlowFixMe
export default withRouter(NavBar);
Loading

0 comments on commit 8588cdf

Please sign in to comment.