From 640e03fe1415947abda0d22025936fc81545c324 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Wed, 13 Sep 2017 14:54:15 +0300 Subject: [PATCH] fixed code formatting --- .../settings/settings.addNodePanel.js | 3 +- .../settings/settings.appInfoPanel.js | 3 +- .../settings/settings.appSettingsPanel.js | 5 +- .../settings/settings.appUpdatePanel.js | 66 +++++++++---------- .../dashboard/settings/settings.cliPanel.js | 4 +- .../settings/settings.debugLogPanel.js | 4 +- .../settings/settings.exportKeysPanel.js | 3 +- .../settings/settings.fiatCurrencyPanel.js | 3 +- .../settings/settings.importKeysPanel.js | 4 +- .../components/dashboard/settings/settings.js | 17 +++-- .../dashboard/settings/settings.render.js | 9 ++- .../settings/settings.supportPanel.js | 2 +- .../settings/settings.walletBackupPanel.js | 3 +- .../settings/settings.walletInfoPanel.js | 3 +- 14 files changed, 61 insertions(+), 68 deletions(-) diff --git a/react/src/components/dashboard/settings/settings.addNodePanel.js b/react/src/components/dashboard/settings/settings.addNodePanel.js index 091981f..67ac130 100644 --- a/react/src/components/dashboard/settings/settings.addNodePanel.js +++ b/react/src/components/dashboard/settings/settings.addNodePanel.js @@ -173,9 +173,8 @@ class AddNodePanel extends React.Component { const mapStateToProps = (state) => { return { - Settings: state.Settings, + Settings: state.Settings, }; - }; export default connect(mapStateToProps)(AddNodePanel); \ No newline at end of file diff --git a/react/src/components/dashboard/settings/settings.appInfoPanel.js b/react/src/components/dashboard/settings/settings.appInfoPanel.js index 5204e41..030caf4 100644 --- a/react/src/components/dashboard/settings/settings.appInfoPanel.js +++ b/react/src/components/dashboard/settings/settings.appInfoPanel.js @@ -83,9 +83,8 @@ class AppInfoPanel extends React.Component { const mapStateToProps = (state) => { return { - Settings: state.Settings, + Settings: state.Settings, }; - }; export default connect(mapStateToProps)(AppInfoPanel); \ No newline at end of file diff --git a/react/src/components/dashboard/settings/settings.appSettingsPanel.js b/react/src/components/dashboard/settings/settings.appSettingsPanel.js index d455557..77b982f 100644 --- a/react/src/components/dashboard/settings/settings.appSettingsPanel.js +++ b/react/src/components/dashboard/settings/settings.appSettingsPanel.js @@ -106,7 +106,6 @@ class AppSettingsPanel extends React.Component { Store.dispatch(saveAppConfig(_appSettingsPristine)); } } - renderConfigEditForm() { let items = []; @@ -306,7 +305,7 @@ class AppSettingsPanel extends React.Component { onClick={ this._resetAppConfig }>Reset to default -); + ); }; } @@ -315,7 +314,7 @@ const mapStateToProps = (state) => { Settings: state.Settings, Dashboard: { skipFullDashboardUpdate: state.Dashboard.skipFullDashboardUpdate, - } + }, }; }; diff --git a/react/src/components/dashboard/settings/settings.appUpdatePanel.js b/react/src/components/dashboard/settings/settings.appUpdatePanel.js index 3a07da2..b7230b0 100644 --- a/react/src/components/dashboard/settings/settings.appUpdatePanel.js +++ b/react/src/components/dashboard/settings/settings.appUpdatePanel.js @@ -30,7 +30,6 @@ class AppUpdatePanel extends React.Component { this._checkForUpdateUIPromise = this._checkForUpdateUIPromise.bind(this); this._updateUIPromise = this._updateUIPromise.bind(this); this.checkNodes = this.checkNodes.bind(this); - } componentWillMount() { @@ -108,46 +107,45 @@ class AppUpdatePanel extends React.Component { render() { return ( -
-
-
{ translate('INDEX.UI_UPDATE') }
-
- - -
-
-
-
{ translate('INDEX.BINS_UPDATE') }
-
- - -
-
-
- { this.renderUpdateStatus() } -
+
+
+
{ translate('INDEX.UI_UPDATE') }
+
+ +
+
+
+
{ translate('INDEX.BINS_UPDATE') }
+
+ + +
+
+
+ { this.renderUpdateStatus() } +
+
); }; } const mapStateToProps = (state) => { return { - Settings: state.Settings, + Settings: state.Settings, }; - }; export default connect(mapStateToProps)(AppUpdatePanel); diff --git a/react/src/components/dashboard/settings/settings.cliPanel.js b/react/src/components/dashboard/settings/settings.cliPanel.js index 3e8d5e0..312dcb2 100644 --- a/react/src/components/dashboard/settings/settings.cliPanel.js +++ b/react/src/components/dashboard/settings/settings.cliPanel.js @@ -134,7 +134,7 @@ class CliPanel extends React.Component { ) ); } - + updateInput = (e) => { this.setState({ [e.target.name]: e.target.value, @@ -190,7 +190,7 @@ class CliPanel extends React.Component {
-); + ); }; } diff --git a/react/src/components/dashboard/settings/settings.debugLogPanel.js b/react/src/components/dashboard/settings/settings.debugLogPanel.js index ff061b2..4fb3408 100644 --- a/react/src/components/dashboard/settings/settings.debugLogPanel.js +++ b/react/src/components/dashboard/settings/settings.debugLogPanel.js @@ -167,13 +167,13 @@ class DebugLogPanel extends React.Component {
{ this.renderAppRuntimeLog() }
} -); + ); }; } const mapStateToProps = (state) => { return { - Settings: state.Settings + Settings: state.Settings, }; }; diff --git a/react/src/components/dashboard/settings/settings.exportKeysPanel.js b/react/src/components/dashboard/settings/settings.exportKeysPanel.js index 53e2a1c..4e1b64a 100644 --- a/react/src/components/dashboard/settings/settings.exportKeysPanel.js +++ b/react/src/components/dashboard/settings/settings.exportKeysPanel.js @@ -214,9 +214,8 @@ const mapStateToProps = (state) => { ActiveCoin: { coin: state.ActiveCoin.coin, }, - Settings: state.Settings, + Settings: state.Settings, }; - }; export default connect(mapStateToProps)(ExportKeysPanel); \ No newline at end of file diff --git a/react/src/components/dashboard/settings/settings.fiatCurrencyPanel.js b/react/src/components/dashboard/settings/settings.fiatCurrencyPanel.js index 4cce17d..ad61436 100644 --- a/react/src/components/dashboard/settings/settings.fiatCurrencyPanel.js +++ b/react/src/components/dashboard/settings/settings.fiatCurrencyPanel.js @@ -16,9 +16,8 @@ class FiatCurrencyPanel extends React.Component { const mapStateToProps = (state) => { return { - Settings: state.Settings, + Settings: state.Settings, }; - }; export default connect(mapStateToProps)(FiatCurrencyPanel); \ No newline at end of file diff --git a/react/src/components/dashboard/settings/settings.importKeysPanel.js b/react/src/components/dashboard/settings/settings.importKeysPanel.js index 698a673..e395871 100644 --- a/react/src/components/dashboard/settings/settings.importKeysPanel.js +++ b/react/src/components/dashboard/settings/settings.importKeysPanel.js @@ -60,8 +60,8 @@ class ImportKeysPanel extends React.Component { -); - }; + ); + } } export default ImportKeysPanel; \ No newline at end of file diff --git a/react/src/components/dashboard/settings/settings.js b/react/src/components/dashboard/settings/settings.js index 59d5343..32c276d 100644 --- a/react/src/components/dashboard/settings/settings.js +++ b/react/src/components/dashboard/settings/settings.js @@ -58,7 +58,7 @@ class Settings extends React.Component { Store.dispatch(getAppConfig()); Store.dispatch(getAppInfo()); - document.getElementById('section-iguana-wallet-settings').setAttribute("style", "height:auto; min-height: 100%"); + document.getElementById('section-iguana-wallet-settings').setAttribute('style', 'height:auto; min-height: 100%'); } componentWillReceiveProps(props) { @@ -72,11 +72,10 @@ class Settings extends React.Component { } openTab(elemId, tab) { - this.setState(Object.assign({}, this.state, { - activeTab: tab, - tabElId: elemId, - })); - + this.setState(Object.assign({}, this.state, { + activeTab: tab, + tabElId: elemId, + })); } updateInput(e) { @@ -84,7 +83,7 @@ class Settings extends React.Component { [e.target.name]: e.target.value, }); } - + renderAppInfoTab() { const releaseInfo = this.props.Settings.appInfo && this.props.Settings.appInfo.releaseInfo; @@ -129,9 +128,9 @@ class Settings extends React.Component { renderAppSettings() { return } - + renderCliPanel() { - return + return } renderSupportPanel() { diff --git a/react/src/components/dashboard/settings/settings.render.js b/react/src/components/dashboard/settings/settings.render.js index 33682a8..0372343 100644 --- a/react/src/components/dashboard/settings/settings.render.js +++ b/react/src/components/dashboard/settings/settings.render.js @@ -52,6 +52,7 @@ export const SettingsRender = function() { } { !this.props.disableWalletSpecificUI &&
this.openTab('DumpWallet', 2) } className={ 'panel' + (this.state.nativeOnly ? ' hide' : '') }> @@ -64,11 +65,12 @@ export const SettingsRender = function() { className={ 'panel-collapse collapse' + (this.state.activeTab === 2 ? ' in' : '') } style={{ height: this.state.activeTab === 2 ? `auto` : '0' }}> { this.renderWalletBackup() } -
+ } { !this.props.disableWalletSpecificUI &&
this.openTab('FiatCurrencySettings', 3) } className={ 'panel' + (this.state.nativeOnly ? ' hide' : '') }> @@ -80,7 +82,8 @@ export const SettingsRender = function() {
- { this.renderFiatCurrency() }
+ { this.renderFiatCurrency() } +
} { !this.props.disableWalletSpecificUI && @@ -199,7 +202,7 @@ export const SettingsRender = function() { { this.renderAppUpdateTab() } - +
-); + ); }; } diff --git a/react/src/components/dashboard/settings/settings.walletBackupPanel.js b/react/src/components/dashboard/settings/settings.walletBackupPanel.js index d0da2a7..e86ca8f 100644 --- a/react/src/components/dashboard/settings/settings.walletBackupPanel.js +++ b/react/src/components/dashboard/settings/settings.walletBackupPanel.js @@ -16,9 +16,8 @@ class WalletBackupPanel extends React.Component { const mapStateToProps = (state) => { return { - Settings: state.Settings, + Settings: state.Settings, }; - }; export default connect(mapStateToProps)(WalletBackupPanel); \ No newline at end of file diff --git a/react/src/components/dashboard/settings/settings.walletInfoPanel.js b/react/src/components/dashboard/settings/settings.walletInfoPanel.js index 612ffd2..29fda9d 100644 --- a/react/src/components/dashboard/settings/settings.walletInfoPanel.js +++ b/react/src/components/dashboard/settings/settings.walletInfoPanel.js @@ -53,9 +53,8 @@ const mapStateToProps = (state) => { return { Main: { activeHandle: state.Main.activeHandle, - } + }, }; - }; export default connect(mapStateToProps)(WalletInfoPanel); \ No newline at end of file